Why doesn't this work;
IIf([Forms]![frmAdvQry]![fraDate]='2',[tblNotebook_Sub]![Date],[Forms]![frmAdvQry]![fraDate]='1' Between [Start Date] And [End Date])
I setup a form with a frame (fraDate) and two option buttons inside it (optYes and optNo). I would like for the end user to be able to decide if they want to search by date or not to. I set the default to No (indexed as 2).
IIf([Forms]![frmAdvQry]![fraDate]='2',[tblNotebook_Sub]![Date],[Forms]![frmAdvQry]![fraDate]='1' Between [Start Date] And [End Date])
I setup a form with a frame (fraDate) and two option buttons inside it (optYes and optNo). I would like for the end user to be able to decide if they want to search by date or not to. I set the default to No (indexed as 2).