Query using a combo box

indesisiv

Access - What's that?
Local time
Today, 22:30
Joined
Jun 13, 2002
Messages
265
Help!!
I have just created a query and it doesn't work.
Basically to give you the background...

I have a text box with things seperated by commas.
I would like to run a search using a combobox on a search form. That side is fine the problem is that i can't get the query to work.

It looks like this
SELECT units.Services1
FROM units
WHERE (((units.Services1) Like '*[Forms]![frmSearch]![cboSearching]*'));

But for some reason that doesn't work.
Anybody got any idea why it doesn't work!!!

Thanks for any help.
Steve
 
SELECT units.Services1
FROM units
WHERE (((units.Services1) Like "*" & [Forms]![frmSearch]![cboSearching] & "*"));
 
Thank you

Cheers Mile-O-Phile
knew that it was something daft.
 

Users who are viewing this thread

Back
Top Bottom