G
Guest
I have a query that I'm using to compile a YTD report. I have a user enter
the time frame they'd like to see and I'm using a query to pull everything
that is equal to or less than the month the user picks.
Here is my where statement:
WHERE ((([qry for report 2].[Commonality Dr
Name])=[Forms]![mainform]![cmbDrname]) AND (([qry for report
2].Month)<=([Forms]![mainform]![month])) AND (([qry for report
2].Year)=Right([Forms]![mainform]![cmbAlldate],4)));
The less-than won't work. I can change it to >=, >, =, and it works. I
can't see why <= isn't working.
Any help would be greatly appreciated.
the time frame they'd like to see and I'm using a query to pull everything
that is equal to or less than the month the user picks.
Here is my where statement:
WHERE ((([qry for report 2].[Commonality Dr
Name])=[Forms]![mainform]![cmbDrname]) AND (([qry for report
2].Month)<=([Forms]![mainform]![month])) AND (([qry for report
2].Year)=Right([Forms]![mainform]![cmbAlldate],4)));
The less-than won't work. I can change it to >=, >, =, and it works. I
can't see why <= isn't working.
Any help would be greatly appreciated.