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!

Alternative prompts

Status
Not open for further replies.

misdeveloper

Programmer
Sep 30, 2002
6
GB
I wish to present the user with a prompt, giving the option to report on a set of data EITHER by a date range OR by a single month (in addition to two other matching criteria).

Is there any way of presenting the user with a prompt box in which they can fill in the two mandatory criteria and then (for the date) either one prompt field or another?

Very grateful for any help!
 
When you are in the Query panel, in the Conditions section, if you click on the "AND" between two conditions it will change to an "OR"

You need to build your two date prompts around such an "OR"
 
You might want to include a trick to allow the user to skip the prompt
example

('SKIP' in @prompt('Enter month or type SKIP to ignore this prompt','A','Class\Object',multi,constrain)
OR
Month in @prompt('Enter month or type SKIP to ignore this prompt','A','Class\Object',multi,constrain))

You can do this by editing the SQL and clicking the do not regenerate box. If the user types the word SKIP into the prompt which is share by the 2 conditions then the second condition is ignored
 
>You can do this by editing the SQL and clicking the do
>not regenerate box.

You can also make a filter in the universe with that expression, and use that filter in the query panel of the report.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top