Article View: borland.public.vdbase.data.sql
Article #739local sql displaying nothing
From: Sebastian Degenaar
Date: Thu, 09 Jul 1998 00:00
Date: Thu, 09 Jul 1998 00:00
26 lines
1375 bytes
1375 bytes
Hi all! I have written some embedded local sql and am having no luck. I have copied the results into a temp table just to see the results. If I use the ? I get the right value for location in the command window, and if I replace :location with "whatever" it also works. Can anyone see what I am doing wrong. The value of location should be like "Adelaide". location = form.rowset.fields["CHURCH"].value locInfo = new Query() locInfo.sql = 'SELECT DISTINCT c.CHURCH, f.CONFERENCE, u.UNIONSDA, d.DIVION ; FROM CUSTOMER AS x, CHURCH AS c, CONF AS f, SDAUNION AS u, DIVISION AS d ; WHERE c.CHURCH = :location AND c.CONFERENCE = f.CONFERENCE ; AND f.UNION_ID = u.UNION_ID ; AND u.DIV_ID = d.DIV_ID ' locInfo.params[ "location" ] = location locInfo.active = true u=new updateset() u.source = locInfo.rowset u.destination = "temp.dbf" u.copy() Cheers!!!
Technical Details
Message-ID:
<6o023s$ik910@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,911f79df217c1b7,start X-Google-Attributes: gidff5a1,public From: "Sebastian Degenaar" <sdegenaar@yahoo.com> Subject: local sql displaying nothing Date: 1998/07/09 Message-ID: <6o023s$ik910@forums.borland.com> X-Deja-AN: 369563272 Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Newsgroups: borland.public.vdbase.data.sql