By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,035 Members | 1,471 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,035 IT Pros & Developers. It's quick & easy.

Query Criteria linked to form

P: n/a
I'm trying to write a query in Access 2. what will search a database
for a field on a form.

If the field on the form is blank I want it to return any value, but if
the field is not blank I want it to return only the value of the field.
I've written the following criteria but Access says too difficult to
evaluate. Is something like this possible.

IIf([Forms]![formSearch]![last_Name] Is Null,"*",
([Forms]![formSearch]![last_Name])
Thanks

Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Try this as your criteria instead;

Like "*" & [Forms]![formSearch]![last_Na*me] & "*"

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.