+ All Categories
Home > Documents > Assignment Acess

Assignment Acess

Date post: 18-Dec-2015
Category:
Upload: orangbiaselakers
View: 21 times
Download: 2 times
Share this document with a friend
Description:
Assignment Access
Popular Tags:
28
Question 1 > How to create a Table Click on Create Table Click on Table Design Button
Transcript

Question 1 > How to create a Table

Question 1 > How to create a Table

Click on Create TableClick on Table Design Button2) Enter fields name and its data type as below:

3) Set fieldstdidtoPrimaryKey(Not allow duplicate data for stdid) by Right Click on that field and choose Primary Key.

4) Click to Save the Table

Question 2 > How to create a Query

Figure 1: Create Queries with Classic MenuClick theInsertdrop down menu in main menus;Click theQueryitems. Then you will view theQuery Wizard. This Query Wizard will guide you to create simple queries.2

Click theCreate tabin Access 2007;Go to theOthergroup;Then you will view theQuery Wizardbutton.Figure 2: Query Wizard in Access 2007 Ribbon3

Figure 3: Query Wizard in Access 2010 RibbonClick theCreatetab in Access 2010;Go to theQueriesgroup; Question 3 > How to create a Form

1) In theNavigation Pane,selectthe table you would like to use to create a form. You do not need open the table 2) Select theCreatetab on the Ribbon, and locate theFormsgroup. Click The form commands2

1.Your form will be created and opened inLayout View3

Tosavethe form, click theSavecommand on theQuick Access toolbar. When prompted, type anamefor the form, then clickOK. Question 4 > How to create a Reports

Open the table or query you would like to use in your report. We want to print out a list of last month's orders, so we'll open up ourOrders Query.2

Select theCreatetab on the Ribbon, and locate theReportsgroup. Click theReportcommand.3

It's likely that some of your data will be located on the other side of thepage break. To fix this,resizeyour fields. Simply select a field, thenclickanddragits edge until the field is the desired size.Repeatwith additional fields until all of your fields fit. 4

On theHometab of theRibbon, click theViewcommand, and selectPrint Previewfrom the drop-down list. Your report will be shown as it will appear on the printed page.5

If necessary, modify thepage size,margin width, andpage orientationusing the related commands on the Ribbon.6

1.Click the down-arrow next to the Table/Queries field and then click the table from which you want to select fields.2.Click a field and then click the single-right arrow to select a single field, click the double-right arrows to select all fields, click a field and then click the single-left arrow to deselect a single field, or click the double-left arrow to deselect all fields.3.Repeat steps 1 and 2 for each table from which you want to select fields.4.Click Next. The Report Wizard moves to the next page.7

1.Click to select the field by which you want to group your data. You may not see this page of the wizard if you are selecting data from a single table.2.Click Next. The Report Wizard moves to the next page.8

3.Click a field you want to group by.4.Click the right-arrow to select a field; click a field and then click the left arrow to deselect a field. Use the up- and down-arrows to change the order of the groupings. If you are only using one table, this may be your first opportunity to select a field to group by.5.Repeat steps 3 and 4 for each field you want to group by.6.Click Next. The Report Wizard moves to the next page9

1.Click the down-arrow and then select the field you want to sort by.2.Click the button to choose ascending or descending order. Clicking the button toggles between Ascending and Descending. You can sort up to four levels.3.Click the Summary Options button. The Summary Options window appears. Question 5 > How to create a Relationship

The order table2

The product table3

The junction table has a primary key ID field and two foreign key fields. Each foreign key field references one side of the many-to-many relationship.4

Now, when you want to add product 2 to order 1 twice, you just set the quantity field to 2.5

This is how you would add multiple product to an order with the quantity field solution.6

Open theRelationshipview by going to the Database Tools tab on the ribbon and selecting the Relationships button.7

When you drag and drop a primary key field onto a field in another table,8

Create a one-to-many relationship between both your entity tables 9


Recommended