Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I cant see whats wrong

Status
Not open for further replies.

ghayman73

Technical User
Jul 3, 2002
55
0
0
FR
i am using the iif function in a query

Expr2: iif([search_term]="",[search1],[search_term])

it doesnt show [search1] if there is no value in [search_term] but it will show [search_term] if there is a value.

any sugestions why this shouldnt work.


Grant
 
Expr2: iif(isnull([search_term]),[search1],[search_term])

Maybe
 
or try
iif([search_term]=vbNullString,[search1],[search_term])
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top