CIS 338: Printing Dr. Ralph D. Westfall February, 2003.

Slides:



Advertisements
Similar presentations
Chapter 5 Multitable Forms
Advertisements

Creating Custom Reports. 2 Design and create a custom report You can easily create custom reports based on a table or query. There are seven sections.
Customizing Reports. Custom Reports A report is a formatted hardcopy of the contents of one or more tables from a database. Although you can format and.
XP New Perspectives on Microsoft Access 2002 Tutorial 61 Microsoft Access 2002 Tutorial 6 – Creating Custom Reports.
Microsoft ® Access ® 2010 Training Create Reports for a Database If a yellow security bar appears at the top of the screen in PowerPoint, click Enable.
Integrating Access with the Web and with Other Programs.
Creating Custom Forms. 2 Design and create a custom form You can create a custom form by modifying an existing form or creating a new form. Either way,
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 Lab10 Interacting with Data (Database Management)
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Pasewark & Pasewark 1 Access Lesson 4 Creating and Modifying Forms Microsoft Office 2007: Introductory.
Access Lesson 4 Creating and Modifying Forms
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
MS-Access XP Lesson 5. Creating a Query with Expression Builder Eg. Consider the following table. Table Name: Overtime Fields & Data types: Emp No (Number),
Access Ch 5 Review.
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 4 Reports, Forms, and Combo Boxes.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 3 – Creating and Modifying Forms.
Microsoft Visual Basic 2005 CHAPTER 12 Cell Phone Applications and Web Services.
XP Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Collecting Data for Well-Designed Forms Chapter 4 “Making.
Microsoft Word Basics. Opening Screen Parts Title Bar Displays the name of the program and the current file Contains the Quick Access Toolbar Contains.
Tutorial 6 Using Form Tools and Creating Custom Forms
® Microsoft Access 2010 Tutorial 6 Using Form Tools and Creating Custom Forms.
CIS 338: Creating ActiveX Controls Dr. Ralph D. Westfall March, 2003.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
Advanced Report and Form Techniques – Project 7. 2 Project 7 Overview This project shows how to create queries for reports, add command buttons to forms,
Chapter 1 Databases and Database Objects: An Introduction
Using Form Tools and Creating Custom Forms Microsoft Access 2010.
Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin TECHNOLOGY PLUG-IN T8 DECISION MAKING USING ACCESS.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Web Feature Data Access Pages.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 5 Enhancing Forms with OLE Fields, Hyperlinks, and Subforms.
ACCESS Part 2. OBJECTIVES  Use the Form Wizard  Create a split form  Use Form Layout View  Add fields to a form  Modify form controls  Create calculations.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 5 Enhancing Forms with OLE Fields, Hyperlinks, and Subforms.
Microsoft Office 2007 Access Chapter 6 Using Macros, Switchboards, PivotTables, and PivotCharts.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 7 – Adding and.
Create Forms Lesson 5. Objectives Software Orientation The Forms group (below) is located on the Create tab in the Ribbon and can be used to create a.
Pasewark & Pasewark 1 Access Lesson 5 Creating and Modifying Reports Microsoft Office 2007: Introductory.
CIS 338: Using Queries in Access as a RecordSource Dr. Ralph D. Westfall May, 2011.
COMPREHENSIVE Access Tutorial 6 Using Form Tools and Creating Custom Forms.
IS201 Agenda: 10/15/2013 Do form and report exercise. Identify general guidelines for form and report design. Discuss a few key points about reports in.
IReport Demo Spring 2008 OEDSA Conference. Report Properties.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 3 – Creating and Modifying Forms.
CREATING FORMS AND REPORTS By: Dr. Ennis-Cole. OBJECTIVES: Create and change a form with the Wizard Navigate and find data using a form Preview and print.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Access Project 7 Advanced Report and Form Techniques.
Microsoft Access 2010 Chapter 8 Advanced Form Techniques.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 3 – Creating and Modifying Forms.
Pasewark & Pasewark 1 Access Lesson 5 Creating and Modifying Reports Microsoft Office 2007: Introductory.
MS-Access XP Lesson 4. Modifying Queries 1.Select query in queries 2.Click design button or Right click on query and click design view 3.Change query.
Microsoft Access Intro Class 9 Report Design.
Customizing Reports Adding a Date to a Report Reference Window Adding a Date to a Report Display the report in the design view Click the Text Box Tool.
Printing Reports. Creating Reports  Reports are the best way to put information from database onto paper, PDF files, and other formats.  In a report,
‘Tirgul’ # 13 Enterprise Development Using Visual Basic 6.0 Autumn 2002 Tirgul #13.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
Prepared by the Academic Faculty Members of IT. Tables Creating Tables. Merging Cells. Splitting Cells. Sorting Tables. Performing Calculations.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6 – Creating Custom Forms.
CIS 338: VB.NET Printing Dr. Ralph D. Westfall May, 2011.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 11 Creating Web Applications and Writing Data to a Database.
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Microsoft Access 2007 – Level 2
Agenda: 10/05/2011 and 10/10/2011 Review Access tables, queries, and forms. Review sample forms. Define 5-8 guidelines each about effective form and report.
Microsoft Office Access 2003
Database Applications – Microsoft Access
Microsoft Office Access 2003
Microsoft Office Access 2003
Microsoft Office Illustrated Introductory, Windows XP Edition
Report using ADO connection
Environment/Report Tutorial
Presentation transcript:

CIS 338: Printing Dr. Ralph D. Westfall February, 2003

Create Print Reports 2 Ways 1. place fields on report layout manually interface is relatively easy to use 2. or use retrieve structure automated layout easier to create summary fields such as subtotals within the report makes it difficult to use code to get information from data source

Manual Report Layout start new project Project>References>Microsoft ActiveX Data Objects 2.[ ] Library, OK Project>Components>Designers>Data Report, OK add command button to form double click button and add code

Manual Report Layout Code Dim cn As ADODB.Connection 'General Set cn = New ADODB.Connection 'Form_Load cn.ConnectionString = _ "Driver=Microsoft Access Driver (*.mdb);DBQ="_ & App.Path & "\[yourdatabase].mdb;" cn.Open dbquery2000.mdb

Manual Layout Code - 2 Dim sSQL As String 'General Dim rs As New ADODB.Recordset 'Command1_Click() sSQL = "select * from Payments where Date > # #" Set rs = cn.Execute(sSQL)

Adding a Data Report Project>Add Data Report Data Report toolbox & Properties windows Data Report Designer window parts Report Header – titles etc. for whole report Page Header – headings etc. for each page Detail – data in report for each record Page Footer – at page bottoms Report Footer - after last report lines

Designing a Data Report click RptLabel (tool) and draw on report put label information into Caption property click RptTextbox and draw on report put name of a field in database into DataField property for each RptTextbox BldgNo AcctNo Payment

Data Report Code 'Command1_Click() Set DataReport1.DataSource = rs DataReport1.Show run project and view report note Print button at top of report also Export button: save as HTML or text 'Notes

Enhancing a Data Report what needs to be fixed? make changes in layout, as necessary can change RptTextBox and Label Font click and drag Section boundaries to tighten spacing move RptTextBoxes and Labels to fit into new boundaries

Enhancing a Data Report - 2 special characters for label Captions %p – current page number %d – current short date (mm/dd/yy)  other date formats available %t – current military time (e.g., 14:20)  other time formats available %i – Title property of DataReport object etc. 'p. 649

Enhancing a Data Report - 3 RptImage (tool) to place image on page click Picture property to identify source file RptLine to draw lines on page RptShape to draw geometric figures Shape property identifies type of figure

Enhancing a Data Report - 4 RptFunction (tool) adds summary fields DataField property = database field name FunctionType property for type of data RptFuncSum, …Ave(rage) …Min(imum), …Max(imum) …RCnt – record count etc. 'p. 652

Enhancing a Data Report - 5 putting a variable into a header (p. 647) Dim strFirstDate strFirstDate = " " DataReport1.Sections("Section4").Controls_ ("lblHeader").Caption = strFirstDate put this code before DataReport1.Show headers: Section4=report, Section2=page (or names you changed to) lblHeader is Name of a label control

Enhancing a Data Report - 6 Crystal Reports packaged with VB much more control over appearance need to install Crystl32.exe from Visual Studio CD runs from Add-Ins>Report Designer very old version of Crystal Reports (4.6 or ?)

Automated Report Layout Project>References>Microsoft Data Environment Instance 1.0>OK may need to install SP4 to get this Project>Components>Designers>Data Environment, OK Project>Add Data Environment right click Connection1 in Environment set Provider to Microsoft Jet 4.0 OLE DB browse for database name in Connection

Automated Report Layout - 2 right click Connection1 >Add Command right click Command1 >Properties Database Object = View for query or Table Object Name = QueryTotalDetail Grouping tab check Group Command Object select BldgNo, SumOfPayment, click >, then click OK

Automated Report Layout - 3 Project>Add Data Report DataSource = DataEnvironment1 DataMember=Command1_Grouping right-click DataReport2 click Retrieve Structure, Yes Warning: destroys any previous layout and controls on this form

Automated Report Layout - 4 tile Data Environment and DataReport2 in the Data Environment, click on the plus sign (+) for the Summary fields in Command1_Grouping click/drag BldgNo from Summary fields to DataReport2 Group Header SumOfPayment -> Group Footer

Automated Report Layout - 5 click and drag Detail field(s) into DataReport2 Detail e.g., Payment note that you get 2 controls: label and text box if necessary, use Ctrl key to select textbox and move away from label

Automated Report Layout - 6 add another command button to form put code in button's click event DataReport2.Show run project and view report 2 make changes in layout as necessary