Search

C

chris

Hi

I'm looking for a code to allow me to search for a phone
number in my DB and disply all the results in a combo box

I tried to do it and I put in my query

Tel like *[forms]![FrmRechercheContact].[form].
[txtNumTel].value*

But it seems not working I have always the message that
there is a . or ! that dos not accept in my query

Thanks
 
M

Marshall Barton

chris said:
I'm looking for a code to allow me to search for a phone
number in my DB and disply all the results in a combo box

I tried to do it and I put in my query

Tel like *[forms]![FrmRechercheContact].[form].
[txtNumTel].value*

But it seems not working I have always the message that
there is a . or ! that dos not accept in my query


The operands of Like must be strings. In addition to Rob's
comments, it should be written:

Tel Like "*" & [forms]![FrmRechercheContact].[txtNumTel] &
"*"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top