I have tblPrefs to allow users to set preferences. Option group [tblPrefs].[ShowOnlyUnfinal  ized] has three choices:
1 = unfinalized
2 = finalized
3 = both
I have a boolean value at [tblSrvRspns].[SurveyComplete], for finalized and unfinalized records. I am trying to query the table and I cannot figure out how to pull out both unfinalized and finalized records (option 3 above). If a users selects option 1 or 2 in tblPrefs the where clause below works correctly.
WHERE is not working for option 3:
	thanks for the help.
							
						
					1 = unfinalized
2 = finalized
3 = both
I have a boolean value at [tblSrvRspns].[SurveyComplete], for finalized and unfinalized records. I am trying to query the table and I cannot figure out how to pull out both unfinalized and finalized records (option 3 above). If a users selects option 1 or 2 in tblPrefs the where clause below works correctly.
WHERE is not working for option 3:
Code:
	WHERE (((tblSrvRspns.SurveyComplete)=
  IIf([tblPrefs].[ShowOnlyUnfinalized]=1,False)
    Or (tblSrvRspns.SurveyComplete)=
  IIf([tblPrefs].[ShowOnlyUnfinalized]=2,True)
    Or (tblSrvRspns.SurveyComplete)=
  IIf([tblPrefs].[ShowOnlyUnfinalized]=3,([tblSrvRspns].[SurveyComplete])=False
    Or ([tblSrvRspns].[SurveyComplete])=True)))
Comment