I have an option group (frame16) with two options - option one produces a value of 1 - if this option is checked, I want the query to filter between startdate and enddate on the form - otherwise, it will include all dates from effectivedate and filter on date received.
What I have below is not working - I was able to get a single value to work but appear to be having a problem with the between.
IIf([Forms]![frmSACmain]![frame16]=1,Between [forms]![frmsacmain]![startdate] And [forms]![frmsacmain]![enddate])
Any help would be greatly appreciated!!!
Thanks!!
Fred
What I have below is not working - I was able to get a single value to work but appear to be having a problem with the between.
IIf([Forms]![frmSACmain]![frame16]=1,Between [forms]![frmsacmain]![startdate] And [forms]![frmsacmain]![enddate])
Any help would be greatly appreciated!!!
Thanks!!
Fred