Article View: borland.public.vdbase.data.sql
Article #8667.01- lookupsql for combobox on grid
From: Lawrence Bain
Date: Thu, 18 Jun 1998 00:00
Date: Thu, 18 Jun 1998 00:00
27 lines
1393 bytes
1393 bytes
Hi, I have a grid that contains the fields of table1. Two of the fields of table1 are key fields of table2 and table3. Table2 is the parent of table3. I am using a lookupSQL on keyfield1 with a combobox to provide the user with a list of valid choices. Everything works fine here. My problem is that I want keyfield2 to list in its combobox only those 'detail' records that exist for the parent selection, keyfield1. In sql terms I would like to see... Select Keyfield2 from table3 where keyfield2 = keyfield1. I have been unsuccessful trying to use a varaiable for keyfield1. I have also tried working at the problem using lookuprowset to populate the combobox, but I cannot get around "DB7 - Internal Errors". Passing a parameter is the likely the solution, but I need some help on using them. I would appreciate any assistance provided. Thanks. Lawrence Bain
Technical Details
Message-ID:
<01bd9ad9$567179e0$LocalHost@lawrence>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,35d3fd187580ad8,start X-Google-Attributes: gidff5a1,public From: "Lawrence Bain" <admin@kittlingridge.com> Subject: 7.01- lookupsql for combobox on grid Date: 1998/06/18 Message-ID: <01bd9ad9$567179e0$LocalHost@lawrence> X-Deja-AN: 363934758 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Organization: Kittling Ridge Ltd. Newsgroups: borland.public.vdbase.data.sql