You are on page 1of 28

Question 1 > How to create a Table

Click on Create Table


Click on Table Design Button

2) Enter fields name and its data type as below:

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

4) Click <Ctrl-S> to Save the Table

Question 2 > How to create a Query

Figure 1: Create Queries with Classic Menu


Click theInsertdrop down menu
in main menus;
Click theQueryitems.
Then you will view theQuery
Wizard. This
Query Wizard
will guide you to create simple
queries.

Figure 2: Query Wizard in Access 2007 Ribbon


Click the Create tab in Access 2007;
Go to the Other group;
Then you will view the Query
Wizard button.

Figure 3: Query Wizard in Access 2010 Ribbon


Click theCreatetab in Access
2010;
Go to theQueriesgroup;

Question 3 > How to create a Form

1) In the Navigation Pane, select the table you would


like to use to create a form. You do not need open the
table
2) Select the Create tab on the Ribbon, and locate
the Forms group. Click The form commands

1.Your form will be created and opened inLayout


View

To save the form, click the Save command on the Quick Access toolbar.
When prompted, type a name for the form, then click OK.

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.

Select the Create tab on the Ribbon, and locate the Reports group. Click
the Report command.

It's likely that some of your data will be located on the other side of the page break.
To fix this, resize your fields. Simply select a field, then click and drag its edge until
the field is the desired size. Repeat with additional fields until all of your fields fit.

On the Home tab of the Ribbon, click the View command, and select Print
Preview from the drop-down list. Your report will be shown as it will appear on the
printed page.

If necessary, modify the page size, margin width, and page orientation using the
related commands on the Ribbon.

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.

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.

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 page

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 table

The product table

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.

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

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

Open the Relationship view by going to the Database Tools tab on the
ribbon and selecting the Relationships button.

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

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

You might also like