Wild Card

G

Guest

I have the user use a form to set the criteria for a like query. I would like
to let the user leave a field blank. How would I put in the wild card. Here
is the code I use now.

[Forms]![Qtr Loss LookUp FM]![Loss FY]

I did add & "*" to the end and it did not work.
 
N

Nikos Yannacopoulos

You're very close. It should be:

Like [Forms]![Qtr Loss LookUp FM]![Loss FY] & "*"


HTH,
Nikos
 
G

Guest

Thanks

I should have got that!!

Nikos Yannacopoulos said:
You're very close. It should be:

Like [Forms]![Qtr Loss LookUp FM]![Loss FY] & "*"


HTH,
Nikos
I have the user use a form to set the criteria for a like query. I would like
to let the user leave a field blank. How would I put in the wild card. Here
is the code I use now.

[Forms]![Qtr Loss LookUp FM]![Loss FY]

I did add & "*" to the end and it did not work.
 

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