C
consjoe
I have a form with a start date and an end date field. I want a user to
either put dates in these fields or leave blank for all. I can't get the
query to work if the fields are left blank. The code I have in my query is
below.
IIf(IsNull([Forms]![frmReportSearch]![txtStartDate]),,(Between
[Forms]![frmReportSearch]![txtStartDate] And
[Forms]![frmReportSearch]![txtEndDate]))
(FYI..End date is required if Start date is not null)
Thanks!
either put dates in these fields or leave blank for all. I can't get the
query to work if the fields are left blank. The code I have in my query is
below.
IIf(IsNull([Forms]![frmReportSearch]![txtStartDate]),,(Between
[Forms]![frmReportSearch]![txtStartDate] And
[Forms]![frmReportSearch]![txtEndDate]))
(FYI..End date is required if Start date is not null)
Thanks!