?
Solved

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

Posted on 2007-04-06
18
Medium Priority
?
424 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
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses
Course of the Month10 days, 19 hours left to enroll

770 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