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

Error in forumla, invalid name

Status
Not open for further replies.

markphsd

Programmer
Jun 24, 2002
758
US
Crystal Reports 10, Visual Basic 6.

When assigning the header of the report a company name, not using a database I get a permission error or an invalid name error:

I have this field in the header of the report. The code behind the header of the report is this:

Receipt.RecordSelectionFormula = "{CompanyHeader} = 'My Company Name'"

And I've tried this

FormulaFields.GetItemByName("CompanyHeader").Text = "My Company Name"


What is the correct way to set the text of a formula field?

Thank you.

Mark P.
Providing Low Cost Powerful Point of Sale Solutions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top