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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Range

Status
Not open for further replies.

Rosy1

Technical User
Aug 6, 2003
19
0
0
US
I want to create a report looking at data from yesterday at a particular time and ending today at a particular time. Can anyone help me going over the midnight barrier?
Thanks... Rosy1
 
Try something like the following for your record selection formula:

{table.datetime} in datetime(currentdate-1,time(19,0,0)) to datetime(currentdate,time(18,59,59))

-LB
 
Another means would be to create a datetime parameter of type range, and then the report will prompt you for the range.

Then your record selection formula->record would have:

{table.datetime} in {MyDateTimeParameter}

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top