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!

Dynamic date prompt range-show last 5 years data of UserResponse

Status
Not open for further replies.

Maiden

Technical User
Jun 12, 2001
25
GB
Hi
How can I create a universe filter object which can make use of a UserResponse to a prompt for a date entry?

Example: I open a report; as report prompt: year entry; the entered year is joined with a calculation (>= [User-Response] -5) --> Example: User entry: 1999
Now all records are shown from 1994 until 1999
-We do not want the Between to be shown
-the user should only make a year entry, because in the report no data in the range of more than five years previous are to be shown.

I tried using:
@Select(Test Objects\Year2) BETWEEN @Prompt('ENTER YEAR','N',{'1993','1994','1995'},mono,free) AND (@Prompt('ENTER YEAR','N',{'1993','1994','1995'},mono,free)-2)

gives 'No data to fetch'.

Any ideas?
Maiden
 
Using your database's syntax, create a Universe Object called "Year-5" and set your filter to be "Year" between "Year-5" And Prompt (Enter Year:)

*To get "Year-5" into the filter, choose "Select an Object"

I hope this works for you!

Eldad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top