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

PELASE HELP!..PLEASE!!!

Status
Not open for further replies.

DaRetina

Programmer
Sep 22, 2001
15
0
0
JO
Thanks in Advance..
I neeed to make a formula in CR..The formula contains a variable that I obtain from a text field in VB!..
I did the following :
Global TaxRate as Number
Formula = {SharesRpt.Shares} * TaxRate
in the formual field..
WHERE CAN I SET THE VARIABLE TaxRate??
CAN I USE :
Me.SetReportVariableValue "TaxRate", Val(txtFld(4).Text)WHERE CAN I USE IT?..And can I see report variables from within a formula?
THANKS
 
The simplest would be to create a separate formula field in CR for the tax rate, storing a literal value. Then overwrite the literal from VB with your current value. That way the report can also be run without the app.

The syntax for passing the formula depends on your integration method. See faq149-237, the choices are OCX, RDC, API, Automation Server. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top