1.To open MS Access
- Click on start button
- Click all programs
- Click Microsoft Office
- Click MS Access
- To create a blank database
- Open MS Access
- Select blank database
- Give file name
- Browse folder where you want to save your database files
- Click create
- Design and creating tables
- Right click table → select design view.
- Give Table name → Click OK
- Make the table
- Press CTRL+S or F12 (To save)
- Click create tab → Click Table
- Right click to the newly created table → select design view.
- Give table name → click OK
- Make the table
- Press CTRL+S
- Creating relationships
- Click Database tools tab → select relationship
- Select all the tables one by one and click add → Click close
- Click hold and drag primary key field of one table to the key field of other table and release mouse on table.
(NOTE: No relationship required for one table. It is only for two or more tables)
- Creating the Query
- Click create tab
- Select query design
- Repeat step by (creating relationships)
- Drag fields from each table to the lower area for query
- Press CTRL+S → give name → OK
- Click on Create tab – Click on Query Design from other group – Add tables –
Update –
Field:
Table:
Update to:
Criteria:
Or:
- Creating form (used to enter data into database)
- Click create tab
- Select form wizard
- Tables/Queries → Query : Query 1
- Click >>
- Click next two times → Finish
- Creating Report (To see the database)
- Click create tab
- Select report wizard
- Tables/Queries → Query : Query 1
- Click >>
- Click next two times
- Ascending → Primary Key field
- Click next two times → Finish
- To enter information into database
- Double click Query 1 under forms (see the left pane)
- Fill the information
- Click next record.
- To see the database
- Double click query 1 under report (see the left pane)
10. To add background image in a form of report
- Right click on the form/report
- Select Design view
- Click format tab
- Select background image → Click browse
- Select desired image
- Right click on the form
- Select properties
- Picture size mode → Stretch
_________________________________________________
Q. Create a database and following tables on MS Access given below.
Solution:
Blank database – create – Table 1 (right click → design view) – OK
Table 1
Field Name |
Data Type |
Name |
Text |
Address |
Memo |
Course |
Text |
Duration |
Text |
- Press CTRL+S to save → Close Table 1 → Create Table Design → Table 2
Field Name |
Data Type |
Name |
Text |
Fess |
Currency |
Roll No |
Number (General →Field size → Double) |
Phone No |
Number (Double) |
- Save (CTRL+S)
- Database tools → Relationships → Table 1 add → Table 2 add → Close.
- Name to name → Create → CTRL+S
- Close Relationship
- Create → Query Wizard → Simple Query Wizard → OK
- Table 1 → >>
- Table 2 → > (select required fields) → Next → CTRL+S → Close
- Table 1 Query – Form Wizard → Table 1 → Query >> → next → next → Finish
- Next report after filling up
- After completing go to → create report
0 Comments