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

Date Selection Formula needed

Status
Not open for further replies.

Monkey820

Technical User
Dec 11, 2003
62
US
Hi!

I need a formula to select the last 7 days of records.

I have a report that will run automatically and I need it to pull the past week based on a date field.


Any help is appreciated.

Micky
CRW 8.5
OS WinXP
 
Go to Report->Edit Selection Formula->Record and palce:

(
{table.field} >= currentdate-6
and
{table.field} <= currentdate
)

Replacing table field with your date field.

Note that this includes today, if you want the previous 7 days, use:

(
{table.field} >= currentdate-7
and
{table.field} <= currentdate-1
)

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top