Article View: borland.public.vdbase.data.sql
Article #625Lookup Tables
From: Carl White
Date: Tue, 22 Sep 1998 00:00
Date: Tue, 22 Sep 1998 00:00
21 lines
1435 bytes
1435 bytes
I'm struggling with trying to set up a fairly simple lookup routine
between a master file and a small table file. My LIBRARY has a 'code'
which should cross reference with a TABLE file containing the code plus
a description. I want to use a combobox to display the description,
select the description I want, then replace the LIBRARY code field with
the TABLE code corresponding with the description.
In VdB5 I used the LOOKUP() function. I gather that instead of this
function in VdB7 I should be able to use the lookupSQL. But after
studying and experimenting with the documentation and example in the
help file language reference, I'm stumped.
I'm using the following code in the Combobox ONCHANGE event:
select desc, type FROM typetbl
but I get a database engine error: Invalid use of keyword desc,
I'm obviously missing something pretty simple but I can't seem to pin it
down. Any help will be appreciated.
Thanks
Carl
Technical Details
Message-ID:
<36085545.4B537BC6@earthlink.net>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,4b901113c5db6356,start X-Google-Attributes: gidff5a1,public From: Carl White <whitecw@earthlink.net> Subject: Lookup Tables Date: 1998/09/22 Message-ID: <36085545.4B537BC6@earthlink.net> X-Deja-AN: 393849519 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.vdbase.data.sql