Trocergian
Registered User.
- Local time
- Today, 09:19
- Joined
- Apr 6, 2009
- Messages
- 16
Is it possible to use a wildcard in an IIF statement as criteria for a query?
I want to check a field, and if it's null then use a "*" for the search criteria but I can't seem to get it to work.
Here's an example of what I've tried:
IIf([Forms]![frmDrawingLocator]![txtPN03] Is Null,"*",[Forms]![frmDrawingLocator]![txtPN03])
I've tried all sorts of variations for "*" but nothing seems to work. Is there any kind of work around I could use to accomplish this?
I want to check a field, and if it's null then use a "*" for the search criteria but I can't seem to get it to work.
Here's an example of what I've tried:
IIf([Forms]![frmDrawingLocator]![txtPN03] Is Null,"*",[Forms]![frmDrawingLocator]![txtPN03])
I've tried all sorts of variations for "*" but nothing seems to work. Is there any kind of work around I could use to accomplish this?