Query criteria

border20

Registered User.
Local time
Today, 14:03
Joined
Jan 8, 2003
Messages
92
I have a query wich is exported from a form...

I this form, i have a drop down menu that contains search criterias...

I had the folowing code in my query in the criteria field:
[forms]![formname]![dropbox]

but when the dropbox is empty, i want the query to display all the records as if there was no criterias...
how do i do this ?

thx
 
I'm not exactly sure of the set-up, but perhaps if you've used the following criteria for your query...

Like [forms]![formname]![dropbox]

instead of...

=[forms]![formname]![dropbox]

I don't know if that helps. Let me know.
 
Like "*" & Forms!FormName!FormField & "*" will do what you want, but it will slow down the query considerably.
 
Try the following:

=[forms]![formname]![dropbox] OR IsNull([forms]![formname]![dropbox])
 

Users who are viewing this thread

Back
Top Bottom