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!

Blank Parameter Field

Status
Not open for further replies.

zootweller

Technical User
Oct 7, 2001
46
GB
How can I set a parameter, so when a user schedules a report without selecting any parameters, it will default to all relevent values, as though the parameter never existed in the 1st place?

Better explanation: A user schedules a report, forgetting to set the 'From' Date parameter, so instead, all dates should be returned.

I am using Seagate Info 7.0.2
 
If you worry over them forgetting, set the default value to something that they would never select, as in 1/13/1902.

Now in the record selection criteria use something like:

(
if {?ParmDate} <> date(1902,1,13) then
({MyTable.MyDate} = {?ParmDate})
else
(if {?ParmDate} = date(1902,1,13) then
true)
)

I add in both sides of the equation because it seems to assure that the SQL is passed to the database more often when multiple parms are selected.

-k kai@informeddatadecisions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top