Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LIKE syntax in a query using a form field

Status
Not open for further replies.

rkasnick

Programmer
Apr 28, 2003
66
US
OK, I'm stumped. I have a query and in the design grid I am using the following criteria: Like '" & [forms]![fBulkEmail]![text101] & "*' which bases the selection on a field on a form. This syntax returns no records. I cannot find my reference for this and I KNOW it should work, but am sure I have forgotten something. Can anyone point me in the right direction??

Thanks.

 
Hi

what you have there

Like '" & [forms]![fBulkEmail]![text101] & "*'

is what you would do if you were building the query in code

in query design window, just put

[forms]![fBulkEmail]![text101] & "*"

in the criteria box

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Ah, Ken, sometimes the memory gets muddled when you don't use a syntax for a while. Your solution worked great. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top