I have a query for a report hitting a SQL database. One of the fields is Date-Time in this format [11/16/2011 5:46:00 PM]. I have a form with a combo box with simple numbers 1-10. In the Date-Time field of my query I have the following
This way I can select the number of days I want the report to look back. The only problem is I have to select 3 in the combo box in order for the report to look back 1 day. If I select 1 or 2 in the combo box I always get nothing. Selecting 3 I will get the data entered yesterday. Using Access 2007.
Any suggestions on how to fix this problem?
As always I appreciate the help.
Jim
Code:
>Date()-[Forms]![frm_Main]![cboMinusDays]
Any suggestions on how to fix this problem?
As always I appreciate the help.
Jim