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!

Adding the formula to the Parameters fields 1

Status
Not open for further replies.

Ann28

MIS
Apr 2, 2004
97
US
Hello,

I have a check_type parameter field on the report.
(allowed multiple values)
The user is prompt to choose V or P.

If the user would not select any only records with P
option will be displayed on the screen.

if the user did not select anything P & V should be displayed.

It should be a formula I think if the parameter is empty then display all P & V.
REALLY, APPRECIATE YOUR HELP!
 
You could modify the list of the values for your users to be like the following:
P
V
Both

You should also turn off the option "Allow Editing of Default Values . . . " on the parameter.

If the database field can ONLY contain P or V, then you don't need to make it a Multi-value parameter.
You'd modify your record selection formula as follows:
Code:
( {?CheckType} = "Both" 
  or {YourTable.YourField}={?CheckType} )


Bob Suruncle
 
Sorry, I forgot to include the formula to display the value chosen on the report.

Code:
If {?Checktype} = "Both" then "P & V Selected"
Else
{?Checktype} & " Selected"


Bob Suruncle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top