473,395 Members | 1,530 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,395 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 1716
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: 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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.