Data Environment and Grouped Report

Slides:



Advertisements
Similar presentations
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.
Advertisements

Copyright 2003, Paradigm Publishing Inc. CHAPTER 5 BACKNEXTEND 5-1 LINKS TO OBJECTIVES AutoForm Form Wizard Fields From Related Database Tables Fields.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Using Objects and Properties
Access Tutorial 1 Creating a Database
EGR 141 Computer Problem Solving in Engineering and Computer Science Interfacing with a Database in Visual Basic.NET 2005.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
Preparing and Adding Multimedia. Speaker’s Notes This place used for writing important notes on the presentation slide that you will be talking about.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Web Feature Data Access Pages.
XP New Perspectives on Microsoft Access 2002 Tutorial 21 Microsoft Access Tutorial 2 – Creating And Maintaining A Database.
XP 1 Microsoft Access 2003 Introduction To Microsoft Access 2003.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Key Applications Module Lesson 21 — Access Essentials
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Access Project 7 Advanced Report and Form Techniques.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 3 – Creating and Modifying Forms.
After completing this lesson, you will be able to: Open an existing presentation. Add a header and a footer. Preview a presentation. Change the page setup.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
Access Module Implementing a Database with Microsoft Access A Great Module on Your CD.
VB.NET and Databases. ADO.NET VB.Net allows you many ways to connect to a database. The technology used to interact with a database or data source is.
Access Queries and Forms. Adding a New Field  To insert a field after you have saved your table, open Access, and open the table  It is easier to add.
1 Access Lesson 1 Understanding Access Fundamentals Microsoft Office 2010 Fundamentals Story / Walls.
Microsoft Access Lesson One Notes.
INTRODUCTION TO DATABASES (MICROSOFT ACCESS)
Microsoft Visual Basic 2010: Reloaded Fourth Edition
Unit 9.1 Learning Objectives Data Access in Code
Setting Defaults in Microsoft Word for Accessibility
Using Macros, Switchboards, PivotTables, and PivotCharts
Find, filter etc with connection to Access code internally
View Address Page Helpful Hints
Microsoft Access 2013 Bobby Wan.
Access Tutorial 1 Creating a Database
Practical Office 2007 Chapter 10
End of Access Exam Review.
Microsoft Office Access 2003
Building a User Interface with Forms
Developing Forms and Subforms.
Incorporating Databases with ADO.NET
THIS IS JEOPARDY. THIS IS JEOPARDY With Your Host... Paul Berman.
Enhancing Forms with OLE Fields, Hyperlinks, and Subforms
Microsoft Access 2003 Illustrated Complete
Access Chapter 5 Multi-Table Forms.
Please use speaker notes for additional information!
Access Lesson 1 Understanding Access Fundamentals
Incorporating Databases with ADO.NET
Database Applications – Microsoft Access
Chapter 7 Advanced Form Techniques
Microsoft Office Access 2003
Access Tutorial 1 Creating a Database
Creating and Modifying Queries
Microsoft Official Academic Course, Access 2016
Microsoft Office Access 2003
Brief description on how to navigate within this presentation (ppt)
Technology ICT Core: PowerPoint.
Microsoft Official Academic Course, Access 2016
Report using ADO connection
Microsoft Office Access 2003
Database Applications
Environment/Report Tutorial
From and Report.
Click on Save All to save everything and choose a location etc
Access Tutorial 1 Creating a Database
Take-off Products and Solutions for Public Information Providers
Access Tutorial 1 Creating a Database
Analyzing Data Using Access
eSeries Entities By Julie Ladner
Relationships While we are on the subject of Relationships, let’s take a quick look at them.
Unit – V Data Controls.
Presentation transcript:

Data Environment and Grouped Report Please use speaker notes for additional information! This presentation deals with a data environment and a report with groups. There is also a form where you can move from group to group and from record to record within groups.

PrStudentRel.vbp This shows the form that is used. The Group buttons are used to navigate between groups and the Next Student button is to navigate between students within groups. The Report menu controls printing or displaying the report.

PrStudentRel.vbp This is the display of the first record on the form. Note that the records are grouped by Major Code and IT is the first major code.

PrStudentRel.vbp This shows the display of the Report. Note that the first record shown on the report is the first record shown on the form on the previous slide.

The first step in creating a data environment is to go to Project and select Add Data Environment. The Data Environment is created as shown.

Select 4.0 for Access200 and 3.51 for Access 97. The DataEnvironment and the DEConnection have now been named. Right click on the DEConnectionand select Properties to make the connection. Select 4.0 for Access200 and 3.51 for Access 97. The next step is to right click on conStudentRel and then select Properites

Continuing with the connection, we establish the path to the database. The properties shows the results of establishing the path with the Data Link Properties. Continuing with the connection, we establish the path to the database.

The connection to the desired table in the database is now made. Note that I have clicked on the + beside Student00 to see the fields. If I click on the - that is currently there, the + will reappear and the fields will not be listed. The connection to the desired table in the database is now made.

Everything has now been named to match the actual project that I am recreating. I now am adding a Data Report by going to Project/Add Data Report. Note that the report shows up under Designers.

Note that in the Student00 Command object properties, you select Grouping. You then click on Group Command Object and move the field that you want to use in the grouping. The results are shown.

Data has been dragged and dropped to the report and a header added. Note that I am not using the Report Header or Footer so they are closed. The page header has the report name and the field names which have been revised. The fields show the data.

rsStudent00_Grouping is defined in the data environment rsStudent00_Grouping is defined in the data environment. rsStudent is defined by me. It is the collection of records in a particular group. When I display the report, I first create bookmark so that I will know where I was when I left to run the report. Note that there is a bookmark for the group and a bookmark for the individual record. This means that I will return to the same place in the table when I return to the form. Note that the form is shown in vbModal. I need to do something that will relinquish the report object and in vbModal clicking on the form will no that. Another technique I tired was using a message box after the form to disassociate with the report. After the report, I use the stored bookmark to bring up the next record. Note that I am dealing with two record sets, the grouping recordset and the detail recordset. I need to reposition in both of them. More discussion of the detail recordset and the Fill_Textboxes on the next slides. Specifically, the next slide will deal with rsStudent

“You can create a Command hierarchy by grouping a Command object “You can create a Command hierarchy by grouping a Command object. When a Command object is grouped, the grouped fields are added to a grouping Command object that becomes the parent of the original Command object. In the resulting recordsets, the grouping Command object contains a row for each unique set of values of the grouped fields.” Microsoft VB Help (Grouping Command Objects) rsStudent is defined as a Variant. On form load, I do the routine which sets rsStudent equal to the recordset composed of records with the current major. When I create grouping, I essentially set up student00_Grouping which can be referred to with the automatic addition of rs in front. Please be sure to read the information on grouping available in Help under the heading Grouping Command Objects. I then defined rsStudent and set it to hold the records in a group. I can then fill the textboxes on the form using the fields in that structure.

The code to print and display is similar. Note that to print you use The code to print and display is similar. Note that to print you use .PrintReport and to display you simply use .Show. In both cases you are referring to the report (rptStudentRel in this example).

Navigating from group to group uses rsStudent00_Grouping. Navigating the students within the group is what required the definition of rsStudent. You can now view all of the students in the group through this code. The original definition of group let me move from the first record in one group to the first record of the next group on the form. I wanted to be able to move through the records in each group. To do this, I defined rsStudent and set it equal to the recordset that contains the records in the group. Now I can move from record to record in the group filling the fields on the form using Fill_Textboxes.