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

passing formulafield from vb6 to CR9

Status
Not open for further replies.

Periko

Programmer
Feb 24, 2003
134
BE
Hello,

I try to pass a formulafield from my vb6-application to my CR9-report. Problem is, i can pass the field like
report.formulafields(0).text = chr(39) & "my test" & chr(39)

However, the formulafield's name on the report is called test
so, this next sample isn't recognized by CR9 :
report.formulafields(0).text = "test =" & chr(39) & "my test" & chr(39)

Can anybody help me ?

Greetings...
Pedro from Belgium
 
Try it like this:
Code:
report.FormulaFields.GetItemByName("test").Text = Chr(39) & "This is my test" & Chr(39)
-dave
 
Thx vidru,

that did it !

this was a very useful tip !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top