Solved

Data report function problem

Posted on 2002-04-05
9
171 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
ID: 6922511
One of your fields is most likely not a numeric field type, have you checked them in the table.
0
 

Author Comment

by:gsbharathi
ID: 6922516
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
ID: 6922521
Hmmm how did you use the function i.e. sum(blah,blah)
0
 

Author Comment

by:gsbharathi
ID: 6922526
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 6923113
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
ID: 6923450
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
ID: 6923611
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
ID: 7754921
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
ID: 7812118
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…

895 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

14 Experts available now in Live!

Get 1:1 Help Now