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

Show records with date equal to or less than now 1

Status
Not open for further replies.

epoh

IS-IT--Management
May 8, 2006
73
US
What formula do I use in Record | Select Expert
to show dates less than the current date and time?

{Hist.RecDate} <= DateTime X
I tried Now(), Now, CurrentTime
none of them worked.

{Hist.RecDate} <= DateTime(Now)
Didnt give me an error but it returned no records.

Thanks
 
Select Report->Record Selection->Record and place:

{Hist.RecDate} <= currentdate

-k
 
Try:

{Hist.RecDate} <= currentdatetime

-LB
 
Ahhh, right, if you need it for the time, use LB's formula, I overlooked the time requirement.

-k
 
Thank you lbass, that did what I wanted.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top