Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date/Time Range in reports

Status
Not open for further replies.

gofish23

Technical User
Jul 15, 2003
4
US
I have a Work Order Table that automatically enters a date and time stamp to each record. I'm trying to run a report, first using a form to query the user for a beginning and end date for the report. Everything works except that I do not show the work orders on the report that are equal to the end date. I'm assuming that this is due tot he fact that the time stamp makes it greater than the base date value. I'm using the following experession to filer the record:

>=[forms]![Report Date Range Location]![Beginnining Date] And <=[forms]![Report Date Range Location]![Ending Date]

Thanks for the help.
 
I thought you'd have an answer by now. I know what's missing (time) but am unsure of the syntax...

>=(datevalue([forms]![Report Date Range Location]![Beginnining Date]) + timevalue(#00:00:00#() And <=(datevalue([forms]![Report Date Range Location]![Ending Date]) + timevalue(#23:59:59#))

If this doesn't work, hopefully someone will give you a proper method to include the time with your date fields.


HTH,
Bob
Thread181-473997 provides information regarding this site.
 
OOPS!

>=(datevalue([forms]![Report Date Range Location]![Beginnining Date]) + timevalue(#00:00:00#)) And <=(datevalue([forms]![Report Date Range Location]![Ending Date]) + timevalue(#23:59:59#))


HTH,
Bob
Thread181-473997 provides information regarding this site.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top