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

passing formula via RDC?

Status
Not open for further replies.

gabster

Programmer
Oct 23, 2001
192
US
Hello everyone!

I keep getting an error saying:

"The remaining text does not appear ti be part of the formula"

if I try to pass the formula content through the RDC...
This is what I am using:

Report.FormulaFields.Item(7).Text = "arclass"

I checked the item index and it's correct (if I start from 0).
Also I would like to access my formula by name. I checked the RDC help, but their example gives me another error...

What am I doing wrong?

Thanks a lot!
Gabi.
 
The RDC won't let you name a formula, only by number.
You have to put your quotes in quotes. Try:

Report.FormulaFields.Item(7).Text = " 'arclass' " 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