tmyqury and a dblookuplistbox
Posted: Tue  20 Jun 2006 20:22
				
				I have a TDBLookUpListBox on my form.  I am populating it with a TMyQuery->SQL= "SELECT * FROM Site_ID"   initially from the designer.
Now if a user wants to narrow the items in the TDBLookUpListBox how do you go about it?
I have been trying to change the SQL statment like this:
MyQuery_Site_ID->SQL->Text ="SELECT * FROM Site_ID WHERE Version_Inv = 1";
But this raises a exception.
Thanks.
			Now if a user wants to narrow the items in the TDBLookUpListBox how do you go about it?
I have been trying to change the SQL statment like this:
MyQuery_Site_ID->SQL->Text ="SELECT * FROM Site_ID WHERE Version_Inv = 1";
But this raises a exception.
Thanks.