Solved

Simple Crystal Report's Question

Posted on 1998-12-22
2
350 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

810 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