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

A string is required here Error in Formula

Status
Not open for further replies.

cyreports

Programmer
May 12, 2010
89
0
0
US
I am using this unexpecting value on my Details band to suppress if my paient has work comp. I am getting a string is required here error when it executes in my database. When I check the formula it say no errors but wont work in my db. Can I cast or change this somehow?

{rpPatProfile.WorkersComp} = 0
 
Are you switching dbs

If Crystal sees it as a number in design then it must be a number in database.

From field explorer browse the field {rpPatProfile.WorkersComp} and make sure its a number.

What version of Crystal are you using?

Ian
 
{rpPatProfile.WorkersComp} is a number. I am using crystal 9. It must be coming from somewhere else then. If I have that as my detail suppress statement, shouldn't other formulas in that section matter since I am suppressing it overall?

For example - in that one detail section i have close to 20 formulas pulling in values. Since the patient met the criteria to not pull this section, shouldnt the formulas within that section not matter? I think it may be a formula or (formulas in that section) thats causing this, but since it shouldnt pull this section back anyways i dont know why that should matter. Maybe it does.
 
Are you sure its the suppression formula failing?

Remove it and place field on table and see what values are returned.

Ian

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top