Solved

Simple Crystal Report's Question

Posted on 1998-12-22
2
352 Views
Last Modified: 2012-05-04
How can I get the following formula to work in CR 7.0

if {audit_detail.accum} = "Y" then
  "Average: " +
  ToText(Sum(ToNumber({answer_detl.answer}), GroupName ({answer_detl.seq_no})))

This is giving me an error saying that a field is required where is says ToNumber, but the field answer_detl.answer is stored as text even though it is actually numeric.
0
Comment
Question by:Jagar
[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
2 Comments
 

Accepted Solution

by:
sujmags earned 50 total points
ID: 1451945
I created a table that matches ur case and tried to solve the problem,here u go

Create a formula field to compute ToNumber{answer_detl.answer}
say Formula1

now in formula2 , say sum(@formula1,groupcondition)

Now it never gives this error - "Field is required"

Hope this helps
0
 
LVL 2

Author Comment

by:Jagar
ID: 1451946
Thank You it is amazing what you sometimes miss or don't think of.  I have this vastlt complex report working great, but here I forget how to do something simple.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Put text in a picture ASP.NET C# 2 73
Problem to With line 4 87
Collapse and expand table in Word 2010 2 163
Remove Exif Orientation before adding image to db 9 63
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

752 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