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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie needs help with formula

Status
Not open for further replies.

Lilliabeth

Technical User
Jan 26, 2005
1,190
US
Only very seldom am I asked to work with Crystal. I'd really appreciate some help with this formula.

Code:
({po_vch.voucher} in {?StartingVoucher} to {?EndingVoucher});
({po_vch.po_num} in {?StartingPO} to {?EndingPO});
({po_vch.rcvd_date} in {?StartingRecdDate} to {?EndingRecdDate})

The above does not work. I've tried replacing the ";" with "and" and also tried "or". I cannot get any of these to work. I want the option of either entering one or all three variables.

 
What version of CR are you using? What are the datatypes for the fields you are using in the formula?

-LB
 
Hi

If you set the parameters as ranges you will only need one parameter for each field

eg
({po_vch.voucher} in {?StartingVoucher} to {?EndingVoucher});
can be changed to
create new parameter
?Voucher with the following options Numeric and Range then your selection formula would look like

{po_vch.voucher} = {?Voucher}

do this for the other two just remember to set the last one to a date field.

no ';' required


-Mo
 
You should use 'and' not ';'

What is the purpose of this formula? Is it to limit the recordset of the report? If so please confirm that you are not creating a new formula field but are entering the formula under report, edit selection formula, record or under report, selection formulas, record (this varies depending upon your version of Crystal, hence the need to always include this info as LB mentioned).





Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top