SteveL13
asked on
How query all records if date fields are left blank on a form
I have a form with has two date fields... txtStart and txtEnd. Then I have a query which has this for the criteria...
Between [Forms]![frmSelectDatesFor InvestPerf Rpt]![txtS tart] And [Forms]![frmSelectDatesFor InvestPerf Rpt]![txtE nd]
But if the user leaves the date fields blank on the form I want the query to return all records.
I tried...
Between "*" & [Forms]![frmSelectDatesFor InvestPerf Rpt]![txtS tart] And [Forms]![frmSelectDatesFor InvestPerf Rpt]![txtE nd] & "*"
But it doesn't work.
????
Between [Forms]![frmSelectDatesFor
But if the user leaves the date fields blank on the form I want the query to return all records.
I tried...
Between "*" & [Forms]![frmSelectDatesFor
But it doesn't work.
????
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.