Solved

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

Posted on 2007-04-06
18
422 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 100

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 100

Expert Comment

by:mlmcc
ID: 18865392
What data type is gallons?

mlmcc
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

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

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 100

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 100

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 100

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 100

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 100

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 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 19008233
Try

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

mlmcc
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 19019852
Glad i could help

mlmcc
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

739 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