0% found this document useful (0 votes)
6 views10 pages

Practical 5

Uploaded by

sahilcarry42121
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views10 pages

Practical 5

Uploaded by

sahilcarry42121
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Practical 5A

Use the report wizard to create a new report. Modify and existing report by adding deleting or modifying its
control

Create the below table with following fields and data-type

Enter 5 records using direct method

Using report wizard to create the report

Select the table for you want to create the report


Click on create from the ribbon
Under Reports -> Click on Report
Following window will open

Name your report and save it using Ctrl+s

Once you save it you can see the your report(employee) under report
Modify an existing report, and adding and deleting controls

now open the report in design view


resize the report according to your choice
from the design tab -> select text box and add it in your report’s report header

Now you can see text2 is overlap by unbound, edit it in such a way so that they are side by side

Now click on text and write -> highest salary


Click on Unbound and write -> =Max([Salary])

Once done save the report and open it

You’ll see the textbox displaying the highest salary of the employees
Modifying control

Open the report in design view


Click on highest salary textbox, such that it is highlighted by yellow border

You’ll see on the left side property sheet, if not available, right click on the highest salary and click on property
make sure the highest salary is highlighted

Property sheet window will open on right hand side


Now edit the textbox if highest salary according to your choice
Once done save the report and open it in report view

You can see the text box having highest salary is designed with colors
Practical 5B
Create a query containing calculated control. Then create report based on those query. Use the Sorting and
Grouping command to the report

Using the same report that we’ve created in Practical 5A

Create a new query


Go to create tab
Select Query design, this time we’re not selecting QueryWizard

Add the employee table and close


now add firstname, lastname, postion, salary by double clicking on it

Now type this next to salary field and save the query
AnnualSalary: [Salary]*12

Now we’re going to create the report based on the query we’ve created

Select the query,


Go to report ribbon tab
Select report wizard
Click on next, until all next are disabled
Then click on finish
Now right click on report and open the report in layout view

At the bottom you can see Add a sort, click on it

Sort by -> select Annual salary


From largest to smallest

Once you’ve done you can see our report is sort on the base of annual salary from largest to smallest
Practical 5C
Create the cross tab query and display the summarized values from the table

Using the same employee table that we’ve created in practical 5A

Creating a cross tab query


Go to create tab
Select Query design, this time we’re not selecting QueryWizard

Add the employee table and close


you’ll see the following window appeared

Now under design, click on crosstab

Now add position, lastname and salary

Now for crosstab


For position select -> Row heading
For lastname -> column heading
For salary ->Value

It should look like this

Once done run the query

You’ll see the following output, and thus we’ve created the crosstab query

You might also like