Hello,
I have written a query that I want to filter based on the value of a text box. The result of this query then feeds to a ComboBox.
For some reason though, when I click the ComboBox I get prompted to type a value in (as though its not reading the ComboBox).
This is the SQL from the query... can anyone see any obvious error?
Thanks
I have written a query that I want to filter based on the value of a text box. The result of this query then feeds to a ComboBox.
For some reason though, when I click the ComboBox I get prompted to type a value in (as though its not reading the ComboBox).
This is the SQL from the query... can anyone see any obvious error?
Code:
SELECT PIC_tblContacts.Contact, PIC_tblContacts.Tel, PIC_tblContacts.Email, PIC_tblContacts.Type, PIC_tblContacts.[AG Code]
FROM PIC_tblContacts
WHERE (((PIC_tblContacts.[AG Code])=[Forms]![PIC_subPIC]![PIC_txtPIC2]));