I'm having problems with a query i had to make for class. I need to find between dates. I've tried DateDiff but it comes back with no results. Please help me!!
I'm having problems with a query i had to make for class. I need to find between dates. I've tried DateDiff but it comes back with no results. Please help me!!
If you are pulling the date from a form, you can use the code below for the query.
(YourDateFieldFromTable Between Forms!YourFormName!YourControlName1 And Forms!YourFormName!ControlName2)
Control 1 and 2 on the form will be unbound textboxes (name them something like txtBeginDate and txtEndDate - and the Date field will come from your table.
A quick example might look something like this:
Code:
(tblMain.MyDate Between Forms!frmReportDates!txtBegDate _
And Forms!frmReportDates!txtEndDate)