If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Parameter query where blank is like "*"
I have a form and a paramter query. I want to be able to know that if the
form field is blank just give me all your records. I tried IIF(Forms!Form1.Vend is NULL, "Like "&'"*", Forms!Form1.Vend) but get no records when the field is blank. Thanks for the help!! |
#2
|
|||
|
|||
Parameter query where blank is like "*"
Dirtbike wrote:
I have a form and a paramter query. I want to be able to know that if the form field is blank just give me all your records. I tried IIF(Forms!Form1.Vend is NULL, "Like "&'"*", Forms!Form1.Vend) but get no records when the field is blank. Try using the criteria: =Forms!Form1.Vend OR Forms!Form1.Vend Is Null -- Marsh MVP [MS Access] |
#3
|
|||
|
|||
I feel pretty dumb now.
You nailed it, I dunno how I messed it.
"Marshall Barton" wrote: Dirtbike wrote: I have a form and a paramter query. I want to be able to know that if the form field is blank just give me all your records. I tried IIF(Forms!Form1.Vend is NULL, "Like "&'"*", Forms!Form1.Vend) but get no records when the field is blank. Try using the criteria: =Forms!Form1.Vend OR Forms!Form1.Vend Is Null -- Marsh MVP [MS Access] |
Thread Tools | |
Display Modes | |
|
|