Hi,
I have a subform which is populated using the SQL below,
SELECT data.customer, data.importairwaybill, data.shipmentid, data.customsimportno, data.importdate, data.exportairwaybill, data.date, data.customsexportno FROM data WHERE customer Like '*' & Text4 & '*'; #
thing is I would like to be able to change the "customer" bit in the "FROM data WHERE customer Like". I would like this to be populated by the result of a Combo box on the main form. If I enter what I would have expected Combo2 everytime I open the form it asks for the value Combo2.
Any ideas where I am going wrong ??
Cheers all in advance
Ben
I have a subform which is populated using the SQL below,
SELECT data.customer, data.importairwaybill, data.shipmentid, data.customsimportno, data.importdate, data.exportairwaybill, data.date, data.customsexportno FROM data WHERE customer Like '*' & Text4 & '*'; #
thing is I would like to be able to change the "customer" bit in the "FROM data WHERE customer Like". I would like this to be populated by the result of a Combo box on the main form. If I enter what I would have expected Combo2 everytime I open the form it asks for the value Combo2.
Any ideas where I am going wrong ??
Cheers all in advance
Ben