I'm newer at Crystal Reports. I have an application in VB6,
and I need to show some fields (inputs from the user, not fields from a database) in a report I create.
How can I do this?
Thanks for any tip.
The value that goes to CR has to be a valid string formula, which means that you have to pass quotes. What you are passing won't have quotes once it get's to CR. Try
That is because you are using the syntax for the Automation Server (an older technique). But it appears form this error that your application uses the newer, "RDC". Try the following syntax:
Dim strName As String
strName = "'Jonh'"
report.FormulaFields(3).Text = strName
The number has to identify the position of this formula in the report's list of formulas. You can't use the formula name when using the RDC. Be careful, because adding formulas can change the number in the list. Ken Hamady
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.