Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2007-04-06
18
Medium Priority
?
425 Views
Last Modified: 2008-02-01
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
Comment
Question by:BlakeMcKenna
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 10
  • 8
18 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 18865313
Try it this way

formula = CCur (Sum ({tblReport.gallons}))
 
mlmcc
0
 

Author Comment

by:BlakeMcKenna
ID: 18865380
Nope....same error message.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 18865392
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.

 

Author Comment

by:BlakeMcKenna
ID: 18865398
It's declared as a Decimal.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 18865447
Is that the full formula?

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

mlmcc
0
 

Author Comment

by:BlakeMcKenna
ID: 18866047
That didn't work either. Is there any way I can upload a screen shot of the error message I'm getting?
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 18867197
YOu can use www.ee-stuff.com

mlmcc
0
 

Author Comment

by:BlakeMcKenna
ID: 18867336
I can't get your upload utility to work.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 18867974
You have to supply the link to this question, browse to the file and add a comment.  The comment is required.

mlmcc

0
 

Author Comment

by:BlakeMcKenna
ID: 18875747
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
 
LVL 101

Expert Comment

by:mlmcc
ID: 18875919
You can't use the report file directly.  You need to zip it or change the extension to say TXT.

mlmcc
0
 

Author Comment

by:BlakeMcKenna
ID: 18876087
Ok, it's been uploaded....
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 18876553
0
 

Author Comment

by:BlakeMcKenna
ID: 18876628
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
 
LVL 101

Expert Comment

by:mlmcc
ID: 18876733
What data type is gallons?
Crystal thinks it is not numeric

Can you upload the report file itself?

mlmcc
0
 

Author Comment

by:BlakeMcKenna
ID: 18876841
it's not numeric...it's a string!
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 2000 total points
ID: 19008233
Try

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

mlmcc
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 19019852
Glad i could help

mlmcc
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question