Presentation is loading. Please wait.

Presentation is loading. Please wait.

Environment/Report Tutorial

Similar presentations


Presentation on theme: "Environment/Report Tutorial"— Presentation transcript:

1 Environment/Report Tutorial
Please use speaker notes for additional information! This is a step by step tutorial using the report.

2 I started a new project.

3 I am going to add a Data Environment using Projects/Add Data Environment.

4 I have now added the data environment and positioned things on the screen. Next I will give things appropriate names. Note that I clicked the folder in the Project window which shows the forms in this format. On the next slide I will click the folder again to see forms separate from designers.

5 I clicked the toggle folders to see them grouped by form and designer.

6 This shows everything named and now I am going to set the connection properties - I right clicked on the connection and then will click on properties.

7 I am now making the connection
I am now making the connection. Notice the similarity to making the connection through ADO.

8 I have now established the connection to the student database
I have now established the connection to the student database. Again notice the parallel to making the ADO connection.

9 I am now going to Add Command
I am now going to Add Command. Once the command is there, I am now going to look at properties.

10 I am now looking at the Properties for the command (note that I changed the name to Student). This is a full screen of what I showed in the last slide.

11 This shows the Student Properties.

12 Note that I changed the Database Object to Table and then used tablestu as the ObjectName.

13 Notice the fields are now available
Notice the fields are now available. In the next slide, I will drag them over to the form.

14 I dragged Student to the form.

15 Now I am adding a data report.

16 This shows the report and the data report tool bar.

17 I have now set the Data Source to DeStuEnvRpt and the Data Member to Student.

18 Now I moved Report Header and Page Header together since I do not want a Report Header. Note if something is not there you can right click to bring up the choices.

19 Now I dragged over the label and put in the caption as Student Report

20 When I dragged idno to the report, I got a label and the data
When I dragged idno to the report, I got a label and the data. These can be separated so I can use the data in the detail and the label up in the header.

21 Now I have separated the idno as the header and left the data beneath

22 Now I have dragged down a few more fields and moved the footers up to avoid spacing between rows.

23 Now I am setting up a menu on the form to control the printing.

24 This shows the code for the menu.

25 This shows the display of the report.

26 Now I am going to add a total to the report footer
Now I am going to add a total to the report footer. When I right click on Report Footer and select Insert Control followed by function, the SUM appears on the form under the Report Footer.

27 Now I have added a total to the bottom counting the number of records
Now I have added a total to the bottom counting the number of records. See next slide for details.

28 This shows the set up for the total
This shows the set up for the total. Note that I changed the function type to RCNT. This then changed the field to RCNT(Student) since I was counting all student records.


Download ppt "Environment/Report Tutorial"

Similar presentations


Ads by Google