Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 426
  • Last Modified:

Crystal Reports 10.2 - What's wrong with this formula???

On the below formula, I keep getting a message when trying to save it: "A field is required here" starting with CCur all the way to the end.

formula = Sum (CCur ({tblReport.gallons}))
0
BlakeMcKenna
Asked:
BlakeMcKenna
  • 10
  • 8
1 Solution
 
mlmccCommented:
Try it this way

formula = CCur (Sum ({tblReport.gallons}))
 
mlmcc
0
 
BlakeMcKennaAuthor Commented:
Nope....same error message.
0
 
mlmccCommented:
What data type is gallons?

mlmcc
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
BlakeMcKennaAuthor Commented:
It's declared as a Decimal.
0
 
mlmccCommented:
Is that the full formula?

Try using Crystal syntax
CCur (Sum ({tblReport.gallons}))
or
Sum (CCur ({tblReport.gallons}))

mlmcc
0
 
BlakeMcKennaAuthor Commented:
That didn't work either. Is there any way I can upload a screen shot of the error message I'm getting?
0
 
mlmccCommented:
YOu can use www.ee-stuff.com

mlmcc
0
 
BlakeMcKennaAuthor Commented:
I can't get your upload utility to work.
0
 
mlmccCommented:
You have to supply the link to this question, browse to the file and add a comment.  The comment is required.

mlmcc

0
 
BlakeMcKennaAuthor Commented:
I've tried this and it's not working. I click on the address link in Explorer and paste it into the Question textbox as well as the Comment and search for my desired file to u/l and it still doesn't work for me.
0
 
mlmccCommented:
You can't use the report file directly.  You need to zip it or change the extension to say TXT.

mlmcc
0
 
BlakeMcKennaAuthor Commented:
Ok, it's been uploaded....
0
 
mlmccCommented:
0
 
BlakeMcKennaAuthor Commented:
This is getting ridiculous....did you see the error message? Can you respond to it in the forum as any other response? I'm kinda lost right now as to what any response may have been.
0
 
mlmccCommented:
What data type is gallons?
Crystal thinks it is not numeric

Can you upload the report file itself?

mlmcc
0
 
BlakeMcKennaAuthor Commented:
it's not numeric...it's a string!
0
 
mlmccCommented:
Try

Sum (CCur (ToNumber({tblReport.gallons})))

mlmcc
0
 
mlmccCommented:
Glad i could help

mlmcc
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 10
  • 8
Tackle projects and never again get stuck behind a technical roadblock.
Join Now