Hi Guys,
A quick way to do this is to use the NZ function. e.g.,
SELECT Customers.CompanyName, Customers.ContactName, Customers.ContactTitle
FROM Customers
WHERE (((Customers.CompanyName) Like NZ([Forms]![Customers]![CustomerID],'*')) AND ((Customers.ContactName) Like NZ([Forms]![Customers]![CompanyName],'*')) AND ((Customers.ContactTitle) Like NZ([Forms]![Customers]![ContactTitle],'*')));
Then whenever you have a null text box the query uses the wild card instead.
Any good to you?
Jon
|