Submitted to: - Prof.Manider singh
             Submitted by: - Navdeep kaur
                          BCA (1)
                            Rollo number:-4432
We can create a table in MS Access with the help of view. In MS Access
 there are two ways to create a table

1)    Design view
2)    Datasheet view




 in MS Access when we have to make a table then there are few steps
 are used. Following steps are used to create a table in MS Access by
 using design view.

 1.   To create a table in MS Access, click on “Create” button.
 2.   Now click on “Table” button.
 3.   Select “View” option. There are two options in view dialog box.
 4.   Select the “design view”.

 After selecting the design view following diagram is appear.

 Now put the values in the fields and save the table. When you click on
 the save table then it is open.
Datasheet view is very simple way to create a table in MS Access
following steps are used to create a table.


1) To create a table in MS Access, click on “Create” button.
2) Now click on “Table” button.
3) Select “View” option. There are two options in view dialog box.
4) Now select the “datasheet view”.
After selecting “datasheet view “following diagram is appear
  Now click twice on add new field and a new name to this field and put
the value in the rows and at last save it
After saving, the table looks like that table
Relationship means connection between two things. A
  relationship between two tables is mean that a connection between two
  tables. For creating a relation between two tables following

  Steps are used.

  i. Click on “datasheet”
ii. Now click on “Relationships”.
iii.       Now press the right button of mouse than a dialog box is open
 iv.       Select the tables in which you want to create a relation.
  v.       Click on add button
 vi.       All the tables is appear on screen in this form
vii.       Now drag one element of a table to the another element of the
     other table
     Thus we can create a relation between two tables.
There are 3 types of relationship in MS- Access
     One to one
     One to many
     Many to one



                                            :-

In One to one relationship one primary key of a table create a relation
to the primary key of the other table, steps that are used for this is
following

 Select a primary key of a table
 Drag it on primary key of another table.
 Now monitor show you a dialog box now click on enforce
referential integrity.
 Click on create than your one to one relation is create




In One to many relationship one primary key of a table create a relation
to the foreign key of the other table, steps that are used for this is
following
 Select a primary key of a table
   Drag it on foreign key of another table.
   Now monitor show you a dialog box now click on enforce
  referential integrity.
   Click on create than your one to many relation is create




  In Many to one relationship one foreign key of a table create a relation
  to the primary key of the other table, steps that are used for this is
  following

 Select a foreign key of a table
 Drag it on primary key of another table
 Now monitor show you a dialog box now click on enforce referential
  integrity.
Following steps are used for designing a query in Ms Access.

 Select the Create tab in the toolbar at the top of the screen. Then
click on the Query Design button under the Other group.
 Next, highlight the tables that you wish to use in the query. In this
example, we've selected the “Table 1” table and clicked on the Add
button. When you are done selecting the tables, click on the Close
button.
 Add the fields to the query. You can do this by double-clicking on
the field name. In this example, we've added the student id, name,
class, marks.
 Then click on the Save button at the top left of the window (this is
the button with the picture of the disk).
 The Save As window should appear. Enter the name that you'd like
to assign to the query and click on the OK button. In this example, we've
saved the query as Query1.

You should now see the query appear in the left window.
There are four types of query in ms access

     Update query
     Select query
     Make table query




update query is most useful query in ms access. The steps for creates an
update query are following.

 First, you need to create a new query. To do this, select the Create
tab in the toolbar at the top of the screen. Then click on the Query
Design button in the other group.When the Show Table window
appears, select the tables that you wish to use in the query and click on
the Add button. When you have finished adding your tables, click on the
Close button. We’ve selected the student and customer table.Next,
right-click somewhere next to the tables in the query editor Select Query
Type > Update Query from the popup menu.Next, build the query like
the one below:This query will update the id field in the customer table
with the value in the id field in the student table when the name values
match.




to create a select query following steps are used. Select the Create
tab in the toolbar at the top of the screen. Then click on the Query
Design button under the other group. Next, highlight the tables that you
wish to use in the query. In this example, we've selected the Employees
table and clicked on the Add button. When you are done selecting the
tables, click on the Close button. Add the fields to the query. You can do
this by double-clicking on the field name. In this example, we've added
the LastName, FirstName, and Address fields. Then click on the Save
button at the top left of the window (this is the button with the picture
of the disk). The Save As window should appear. Enter the name that
you'd like to assign to the query and click on the OK button. In this
example, we've saved the query as Query1.

You should now see the query appear in the left window.
to create a make table query following steps are used Create a new
query; use the Customers and Orders tables’ .From the Query Type
button on the toolbar, select Make Table query.
1. The Make Table dialog box appears where you should enter the
name for the new table. Here we can also select whether we want to
create the new table in the current database or in another database.
Ensure that the current database is selected and click OK. Select the
mailing information fields, in our case Customer Title, Customer Name,
Address, City, Postcode from the Customers table, and Order Date
from the Orders table. The query design should appear like the
example below:
To check that the results are returned that we expect, click on the
datasheet button on the toolbar. Once you have verified this, switch
back to query design view.
2. In query design, deselect the Show: property for the Order Date
field, as we do not need this to be visible in our new table.
3. Click on the Run button on the toolbar. Microsoft Access now
displays a message to indicate how many records will be copied to the
new table.


4. Click yes to complete the query, and create the new table.
After completing the Make-Table query action, check your results by
opening the new table that you have created in the database window.
In ms access forms are used for create a form of a table. The following
  steps are used for this

a. Select the table whose you want to create a form
  b. Click on create button
  c. Select the form
  This is form of first row of the selected table

Ms access

  • 1.
    Submitted to: -Prof.Manider singh Submitted by: - Navdeep kaur BCA (1) Rollo number:-4432
  • 2.
    We can createa table in MS Access with the help of view. In MS Access there are two ways to create a table 1) Design view 2) Datasheet view in MS Access when we have to make a table then there are few steps are used. Following steps are used to create a table in MS Access by using design view. 1. To create a table in MS Access, click on “Create” button. 2. Now click on “Table” button. 3. Select “View” option. There are two options in view dialog box. 4. Select the “design view”. After selecting the design view following diagram is appear. Now put the values in the fields and save the table. When you click on the save table then it is open.
  • 3.
    Datasheet view isvery simple way to create a table in MS Access following steps are used to create a table. 1) To create a table in MS Access, click on “Create” button. 2) Now click on “Table” button. 3) Select “View” option. There are two options in view dialog box. 4) Now select the “datasheet view”. After selecting “datasheet view “following diagram is appear Now click twice on add new field and a new name to this field and put the value in the rows and at last save it After saving, the table looks like that table
  • 4.
    Relationship means connectionbetween two things. A relationship between two tables is mean that a connection between two tables. For creating a relation between two tables following Steps are used. i. Click on “datasheet” ii. Now click on “Relationships”. iii. Now press the right button of mouse than a dialog box is open iv. Select the tables in which you want to create a relation. v. Click on add button vi. All the tables is appear on screen in this form vii. Now drag one element of a table to the another element of the other table Thus we can create a relation between two tables.
  • 5.
    There are 3types of relationship in MS- Access One to one One to many Many to one :- In One to one relationship one primary key of a table create a relation to the primary key of the other table, steps that are used for this is following  Select a primary key of a table  Drag it on primary key of another table.  Now monitor show you a dialog box now click on enforce referential integrity.  Click on create than your one to one relation is create In One to many relationship one primary key of a table create a relation to the foreign key of the other table, steps that are used for this is following
  • 6.
     Select aprimary key of a table  Drag it on foreign key of another table.  Now monitor show you a dialog box now click on enforce referential integrity.  Click on create than your one to many relation is create In Many to one relationship one foreign key of a table create a relation to the primary key of the other table, steps that are used for this is following  Select a foreign key of a table  Drag it on primary key of another table  Now monitor show you a dialog box now click on enforce referential integrity.
  • 7.
    Following steps areused for designing a query in Ms Access.  Select the Create tab in the toolbar at the top of the screen. Then click on the Query Design button under the Other group.  Next, highlight the tables that you wish to use in the query. In this example, we've selected the “Table 1” table and clicked on the Add button. When you are done selecting the tables, click on the Close button.  Add the fields to the query. You can do this by double-clicking on the field name. In this example, we've added the student id, name, class, marks.  Then click on the Save button at the top left of the window (this is the button with the picture of the disk).  The Save As window should appear. Enter the name that you'd like to assign to the query and click on the OK button. In this example, we've saved the query as Query1. You should now see the query appear in the left window.
  • 8.
    There are fourtypes of query in ms access Update query Select query Make table query update query is most useful query in ms access. The steps for creates an update query are following. First, you need to create a new query. To do this, select the Create tab in the toolbar at the top of the screen. Then click on the Query Design button in the other group.When the Show Table window appears, select the tables that you wish to use in the query and click on the Add button. When you have finished adding your tables, click on the Close button. We’ve selected the student and customer table.Next, right-click somewhere next to the tables in the query editor Select Query Type > Update Query from the popup menu.Next, build the query like the one below:This query will update the id field in the customer table
  • 9.
    with the valuein the id field in the student table when the name values match. to create a select query following steps are used. Select the Create tab in the toolbar at the top of the screen. Then click on the Query Design button under the other group. Next, highlight the tables that you wish to use in the query. In this example, we've selected the Employees table and clicked on the Add button. When you are done selecting the tables, click on the Close button. Add the fields to the query. You can do this by double-clicking on the field name. In this example, we've added the LastName, FirstName, and Address fields. Then click on the Save button at the top left of the window (this is the button with the picture of the disk). The Save As window should appear. Enter the name that you'd like to assign to the query and click on the OK button. In this example, we've saved the query as Query1. You should now see the query appear in the left window.
  • 10.
    to create amake table query following steps are used Create a new query; use the Customers and Orders tables’ .From the Query Type button on the toolbar, select Make Table query. 1. The Make Table dialog box appears where you should enter the name for the new table. Here we can also select whether we want to create the new table in the current database or in another database. Ensure that the current database is selected and click OK. Select the mailing information fields, in our case Customer Title, Customer Name, Address, City, Postcode from the Customers table, and Order Date from the Orders table. The query design should appear like the example below: To check that the results are returned that we expect, click on the datasheet button on the toolbar. Once you have verified this, switch back to query design view. 2. In query design, deselect the Show: property for the Order Date field, as we do not need this to be visible in our new table. 3. Click on the Run button on the toolbar. Microsoft Access now displays a message to indicate how many records will be copied to the new table. 4. Click yes to complete the query, and create the new table. After completing the Make-Table query action, check your results by opening the new table that you have created in the database window.
  • 11.
    In ms accessforms are used for create a form of a table. The following steps are used for this a. Select the table whose you want to create a form b. Click on create button c. Select the form This is form of first row of the selected table