473,386 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Adding No. Units To Crystal Reports

lotus18
866 512MB
Hello World

I have this code that displays this report



Expand|Select|Wrap|Line Numbers
  1. ...
  2.         With frmSchedules
  3.             rs.Open "Select * From PrintSchedule Where Courses.Title='" & _
  4.             .lblSection.Caption & "' And Sections.Title='" & .cboSections.Text & _
  5.             "' And Semester='" & .cboSemester.Text & "'", dbConnection, 1, 1
  6.         End With
  7.         With Report
  8.             .Database.SetDataSource rs
  9.             .PaperOrientation = 2
  10.             .PaperSize = 1
  11.             .DiscardSavedData
  12.         End With
  13.         crViewer.ReportSource = Report
  14.         crViewer.ViewReport
  15. ...
  16.  
How can I get the current total no of units of the schedule (see image below) Summation of Lec and Lab Units (Total no. of units 31)


Mar 13 '08 #1
6 1714
QVeen72
1,445 Expert 1GB
Hi,

Insert a new Formula Field and give this in formula editor:

Sum ({MyTable.Lec}) + Sum ({MyTable.Lab})

and place this formula wherever required..

REgards
Veena
Mar 13 '08 #2
lotus18
866 512MB
Hi,

Insert a new Formula Field and give this in formula editor:

Sum ({MyTable.Lec}) + Sum ({MyTable.Lab})

and place this formula wherever required..

REgards
Veena
Thanks veena, it worked : )
Mar 14 '08 #3
lotus18
866 512MB
Hi Veena. I want to make my total no. of units to be fixed format , it show 31.00 instead of 31.0. I tried, Fix(Sum ({MyTable.Lec}) + Sum ({MyTable.Lab}) ,1) and Rnd(Sum ({MyTable.Lec}) + Sum ({MyTable.Lab}) ,1) to the CR's formula, but nothing happens.
Mar 16 '08 #4
lotus18
866 512MB
Helloo...

Can anyone wants to help me. ~_~
Mar 19 '08 #5
QVeen72
1,445 Expert 1GB
Hi,

Right Click the Formula Field and Click on Format Field
>> Number Tab
Customize
Decimal = 1.0
Rounding =0.1

OK and Save

REgards
Veena
Mar 19 '08 #6
lotus18
866 512MB
Thanks again veena : )
Mar 20 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal...
13
by: kristoff plasun | last post by:
I have a problem with a C++ DCOM application that prints Crystal Reports with data from Oracle. The SQL query is relatively complex but when the report is printed from the Crystal Reports...
1
by: Scott | last post by:
Hello: I have a stored procedure for generating our invoices in Crystal Reports. I have added a new field to the SP, but when I try to add the field to my Crystal Report invoice, the field isn't...
5
by: BStorm | last post by:
I have a transaction log file where the DataSet table's Description column is actually delimited into "subcolumns" based upon the transaction id. I would like to parse these into separate fields...
3
by: Gheaci Maschl | last post by:
Hi all! I would like to have your opinion about my problem and my proposal how to solve it: Ingredients: - BTriev database - Crystal Reports - maybe MS Access - Liinos6 (small ERP software)
3
by: Troy | last post by:
ok, I fat-fingered the Line control in the Crystal Reports tab of the toolbox and now its gone. I can still insert lines with a right-click, but where is the Line control? I found the...
3
by: VMI | last post by:
I know this may not be the best NG for this, but I feel you guys know more about this than any of the other NGs. I need to build several simple reports (over 50 of them and they get their data...
3
by: Miro | last post by:
Hi, Just wondering what a good book is on visual studios 2008 ( or 2005 if no 2008 ) that teaches you how to properly use crystal reports with it. Or im assuming that as long as I can create a...
1
by: =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?= | last post by:
On reflection, you could possibly make the app a self extracting zip file which extracts the EXE and a settings file and then starts the app, then when you app closes, it can repack the settings...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.