I have an option group on a form that us used as criteria for a query. There are 3 options in the group. The field being filtered is a yes/no. Below is my statement. I cannot get the true and false records to show. 1 = both, 2=True, 3=False.
IIf([Forms]![frmForecastMaint]![optItemFlag]=1,([tblMPSItemMaster].[FLAG_NON_EMS_ITEM])=True Or ([tblMPSItemMaster].[FLAG_NON_EMS_ITEM])=False,IIf([Forms]![frmForecastMaint]![optItemFlag]=2,False,True))
Am I missing something. If I take out the Iif structure and leave True or False it worksAny ideas?
vmon
IIf([Forms]![frmForecastMaint]![optItemFlag]=1,([tblMPSItemMaster].[FLAG_NON_EMS_ITEM])=True Or ([tblMPSItemMaster].[FLAG_NON_EMS_ITEM])=False,IIf([Forms]![frmForecastMaint]![optItemFlag]=2,False,True))
Am I missing something. If I take out the Iif structure and leave True or False it worksAny ideas?
vmon