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

Need a formula to filter for current date

Status
Not open for further replies.

JSeidel

Technical User
Jan 10, 2003
77
US
what formula could I write that will only show records for the current day's work?

thanks!

 
in the record selection area and this line:

{yourdatefield} = currentdate

that should help... good luck

[americanflag] ShannonLea [americanflag]
 
Hello,
It shouldn't really be neccesary to use a formula, you can use the Select Expert, and set your data field equal to the desired date (Even use a parameter). If you want it to be a bit more automated, use the Select Expert and select the formula editor to set something like
{Date Field} = "Today". (Today is a built in function).

Hope this helps,
Bob
 
In the record selection formula (report->Edit Selection Formula->Record) try:

{table.datefield} = currentdate

-k
 
Hey synanpsvampire,
You're right, it does build a formula. I guess I was so happy to be finally able to answer a question, I got ahead of myself. Hopefully we all managed to answer JSeidel's question.
 
bdjb: No worries, your answer was correct, though I tend to steer folk away from the select expert as it can generate some erroneous criteria at times, and it might also prevent SQL from being passed to the database.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top