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

Display data for previous day 1

Status
Not open for further replies.

tgraves8

MIS
Jul 13, 2004
26
0
0
US
This might be a simple question but I have not had any luck finding the answer. I need to be able to run a report and have it display the results for the previous day.

The field I have to work with is a date time field. I do not want any prompts.

I was researching the datepart but can't seem to figure out how to make it work. I have not tried any formulas yet.

Thank you for any assitance you can give.

Tim
 
Try Report->Selection Formula->Record and place:

{table.date} = currentdate-1

-k
 
That does not seem to work for this. Maybe since it is a date time field
 
Try:

{table.datetime} >= currentdate-1 and
{table.datetime} < currentdate

-LB
 
It should work, check the Database->Show SQL Query to learn what is being passed.

-k
 
That did work, I had to recreate the report. I was working with an older report that someone else made. Once I started over the currentdate - 1 worked.

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top