Solved

Data report function problem

Posted on 2002-04-05
9
168 Views
Last Modified: 2008-02-01
I am creating a data report and i have a simple query which shows all the data i.e amount and such fields
and i want the sum of the amount filed. and in the footer i used a report function and used the sum and assigned the amount field for sum
but while viewing the report i am getting data type mismatch and i am not able to view the report.
0
Comment
Question by:gsbharathi
9 Comments
 
LVL 6

Expert Comment

by:xSinbad
Comment Utility
One of your fields is most likely not a numeric field type, have you checked them in the table.
0
 

Author Comment

by:gsbharathi
Comment Utility
In the table the datatype is numeric(11,2) and it is a not null field I am using Oracle database.
0
 
LVL 6

Expert Comment

by:xSinbad
Comment Utility
Hmmm how did you use the function i.e. sum(blah,blah)
0
 

Author Comment

by:gsbharathi
Comment Utility
I have added a report function and in the properties for the report i have chosed rptFuncSum  for Function type property and  in the datafield property i have chosen the column whose sum is required i hope i am going in a proper way..
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 75

Expert Comment

by:Anthony Perkins
Comment Utility
Do you need any help maintaining your questions or are you planning to leave all your question open?  For the record:

Questions Asked 9
Last 10 Grades Given  
Question Grading Record 0 Answers Graded / 0 Answers Received

Anthony
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
Do you know which field is giving the problem?

You might try building a report yo simply show each record without trying to do any summaries to ensure you are getting the data you expect.

If you don't see anything ad the summaries one at a time until you get the error.

mlmcc
0
 

Author Comment

by:gsbharathi
Comment Utility
mlmcc:
 The query i have written contatins a case statement this is the query

select distinct iid,
rtrim(vcbankID) AS BankNumber,
amount as TotalAmount,
amount-nvl(withdrewamt,0) as CaseAmount,
CASE WHEN (amount=0) THEN 0
     ELSE to_number(((amount-nvl(withdrewamt,0)) *100)/amount)
          END as PrctAmoount,
nvl(withdrewamt,0) as withdrewamt,
CASE WHEN nvl( withdrewamt,0)=0 THEN 0
      WHEN (amount=0) THEN 0
          ELSE (nvl(withdrewamt,0)*100)/amount
          END as PrctIncurred
from bankdetails

I am able to get the sum of total amount but not able to get the sum of caseamount and prctamount


acoerkins:
 The questions i have asked are still unsolved i think i got answer for one question only till now..

0
 
LVL 16

Expert Comment

by:twalgrave
Comment Utility
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in Community Support that this question is:
- refund/PAQ
Please leave any comments here within the
next seven days.
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
Comment Utility
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now