Simple Query Problem Please Help, its urgent!
I am trying to be able to search my database, using a form, but i have one major problem, i have to fill in every feild in the querey.
Hoe can i have it so when i dont want to search by price, i leave it blank, and it is ignored during the query
My current to search with the feild is [Forms]![Search]![Price]
But how can i ignore the feild if it is Null? i tried [Forms]![Search]![Price] or is null but it doesnt work.
Any Ideas
Paradox
Re: Simple Query Problem Please Help, its urgent!
I have fould the following bit of code that is exactly what i want, it keeps giving me the error of
"The Expression you entered has a function containing the wrong number of arguments"
How can i stop this?
VB Code:
IIF(Len([forms]![search]![Island]=0,"*", [forms]![search]![Island] & "*")
Re: Simple Query Problem Please Help, its urgent!
Looks like you are missing the end bracket of the Len function.
IIF(Len([forms]![search]![Island]=0),"*", [forms]![search]![Island] & "*")