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!

Use Last7Days function

Status
Not open for further replies.

lana123

Programmer
Aug 20, 2003
79
US
Hi, people.
I have to create the report that includes only the items created during the last 7 days. I need to create the parameter "Open Date" based on the Last7Days function.
I read about this function but I cannot understand how connect this function with the OpenDate field and select the items open during 7 days.
I'll appreciate any help.
Thanks in advance.

Lana
 
A parameter wouldn't be based on a date function, you would use a parameter in lieu of the function.

To limit data to the last 7 days, use:

Report->Edit Selection Formula->Record and enter something like:

{table.field} = last7days

To use a parameter instead, try:

Insert->Field Object->Right click parameters andselect New, name it, choose a type as date and select range

Now modify the record selection as follows:

Report->Edit Selection Formula->Record and enter something like:

{table.field} = {?MyDateParameter}

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top