The organisation I work for has disabled VBA coding in MS Applications, so what I am trying to do in MS Access 365 is filter between two dates using embedded Macros. All help would be greatly appreciated.
Here's my code, but it's not working:
[DateOfReport]=[Forms]![DetailsReportFrm]![FirstDateTxt]
And [DateOfReport]=[Forms]![DetailsReportFrm]![SecondDateTxt]
A field cannot meet the criteria of being equal to two values. Instead of And, use OR operator or BETWEEN AND.
[DateOfReport]=[Forms]![DetailsReportFrm]![FirstDateTxt]
Or [DateOfReport]=[Forms]![DetailsReportFrm]![SecondDateTxt]
or
[DateOfReport] Between [Forms]![DetailsReportFrm]![FirstDateTxt]
And [Forms]![DetailsReportFrm]![SecondDateTxt]