Why doesn't my WILDCARD work?

G

Guest

OK, if I use -
LIKE "*name*"
it works fine. But when I link to a form -
LIKE "*forms![]![]*"
it doesn't work.

Your help is appreciated.

Mike D.
 
M

Marshall Smith

Are you trying to get it to use the value of a field on a form? If so, the
syntax should look more like:

LIKE "*" & Forms![frmName]![frmField] & "*"

Access won't evaluate any expression that are inside the quotation marks.

HTH,

Marshall Smith
Project Developers, Inc.
 
M

Mike D.

THAT'S IT!! Thank you for your help!

Mike D.

-----Original Message-----
Are you trying to get it to use the value of a field on a form? If so, the
syntax should look more like:

LIKE "*" & Forms![frmName]![frmField] & "*"

Access won't evaluate any expression that are inside the quotation marks.

HTH,

Marshall Smith
Project Developers, Inc.


OK, if I use -
LIKE "*name*"
it works fine. But when I link to a form -
LIKE "*forms![]![]*"
it doesn't work.

Your help is appreciated.

Mike D.


.
 

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