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!

Help with returning nulls on cbo selection

Status
Not open for further replies.

smdemo

Programmer
Sep 15, 2002
63
0
0
US
I have a search form and when (blank) is selected from one of my fields I am having a hard time getting the query to return all fields that are not null. If nothing is selected, return all records. If a name is selected, match the name.

Logic tells me to write it like below, but I know it does not work due to the Is Null inside the IIf, but I have no idea how to write it correctly

IIf([Forms].[Search].[Reviewer]="blank",([Data Results].[Reviewer]) Is Null,[Forms].[Search].[Reviewer]) OR [Forms].[Search].[Reviewer] Is Null

Does anyone have a solution to this?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top