To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
Part 10 of the Visual Basic .NET 2010 Express Tutorial Complete!
How to Use the Visual Studio Code Analysis Tool FxCop
Article :: Interview with Andrei Alexandrescu (Part 3 of 3)
Introducing Visual Studio LightSwitch
Visual Studio LightSwitch Beta 1 is Available



Go Back   VBForums > Visual Basic > Reporting (Crystal, Access and Data Designer)

Reply Post New Thread
 
Thread Tools Display Modes
Old Apr 5th, 2007, 09:20 AM   #1
intellogo
Member
 
intellogo's Avatar
 
Join Date: Nov 06
Location: India
Posts: 61
intellogo is an unknown quantity at this point (<10)
Resolved [RESOLVED] Arithmetic sum not calculating correctly....

Hi..VBForumers,

Reporting toolkit: Crystal Report 11
Front End: Visual Basic 6.0
Back End: MS ACCESS 2000

I am able to perfectly generate reports.
But....
In my report i have a field: "Price" which is of datatype TEXT at the MS ACCESS 2000 database. Actually my s/w in VB6 and MS ACCESS does not anywhere need to calculate any numerical figure, becoz the scenario is like that...so for that reason i did not use the NUMBER kind of datatype in my database.

But now in my reports, I have to mention the total PRICE at the bottom of the report for the various records queried. And i am noticing that it is not summing it up, eventhough i have 2 records, one having 145.50 and the other having 155.75 as the price, respectively...At the bottom itis only showing the topmost report's proce.

How do i correct it.
Awaiting status reply....
__________________
Regards,
intellogo

Last edited by intellogo; Apr 5th, 2007 at 10:55 PM.
intellogo is offline   Reply With Quote
Old Apr 5th, 2007, 09:55 AM   #2
brucevde
PowerPoster
 
Join Date: Oct 02
Location: British Columbia
Posts: 9,719
brucevde has much to be proud of (1500+)brucevde has much to be proud of (1500+)brucevde has much to be proud of (1500+)brucevde has much to be proud of (1500+)brucevde has much to be proud of (1500+)brucevde has much to be proud of (1500+)brucevde has much to be proud of (1500+)brucevde has much to be proud of (1500+)brucevde has much to be proud of (1500+)brucevde has much to be proud of (1500+)brucevde has much to be proud of (1500+)
Re: Arithmetic sum not calculating correctly....

Create a Formula Field that converts the text data to a number.
You can then create a Summary field based on the Formula.
Place the Summary Field at the bottom of the report.
brucevde is offline   Reply With Quote
Old Apr 5th, 2007, 10:54 PM   #3
intellogo
Member
 
intellogo's Avatar
 
Join Date: Nov 06
Location: India
Posts: 61
intellogo is an unknown quantity at this point (<10)
Resolved Re: Arithmetic sum not calculating correctly....

Brucevde...baby,

This has been solved..I also knew that i have to convert from the string to numeric stuff, but did not know the syntax neither in Crystal syntax nor in Basic Syntax. But i hunted on the net and got it working perfectly as i want...

Thank you for telling me how to use & implement the Formula Feild and place a Summary on that...i never knew this..

Now pls focus on the other 2 issues..This Arithmetic one is SOLVED

Awaiting ur friendly replies.
__________________
Regards,
intellogo
intellogo is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > Reporting (Crystal, Access and Data Designer)


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:37 AM.





Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.