You are on page 1of 4

1

0]-p[Using Microsoft Access 2007


1.
You have to understand what you are
required to do first, before you start reading these instructions. That means, you have
to open the file IT SBA 2014 2015.docx, and turn to page 3 and read.
2. Double-click on the Microsoft Access 2007 icon on the desktop.
3. A screen looking like the one shown below will appear.
4. Now we are going to create a new database file. To do so, click on the Office button (the round
button) in the top left-hand corner of the screen, and click on the word New.
5. On the lower right-hand side of the screen, you will see a box with the word Database1.accdb.
Press Backspace to erase that word, and type your own name followed by the word Cricketers.
That is the name for your database file.
6. Click on the Create button below.
7. On the left side of the screen, look for the word View, and click on it.
8. Click on Design View.
9. You will see the word Table1 in a box in the middle of the screen. Press the Backspace key to
erase it, and type the word History. That is the name for your table.
10. Click on Ok.
11. Right-click on the word ID, and click on Primary Key.
12. Type the words Player ID.
13. Press the tab key on the keyboard and type T.
14. Click in the box below that contains 255, erase that number and type 5.
15. Click in the column on the right of the word Text, and type the words Team Initial and Player
Initials Maximum Field size 5.
16. Click in the box below the words Player ID, and type the word Matches.
17. Press the Tab key, and type N.
18. In the Description column, type Total Number of Zonal Matches Played.
19. Click in the box below the word Matches, and type the words Career Total.
20. Press the Tab key, and type N.
21. In the Description column, type Total Runs Scored in Career.
22. Click in the box below the words Career Total, and type the word High Score.
23. Press the tab key and type N.
24. In the Description column, type Highest Score Made in Career.
25. Click in the box below the word High Score, and type the word Centuries.
26. Press the tab key, and type N.
27. In the Description column, type Number of Centuries Made in Career.
28. Click in the box below the word Centuries, and type the word Sixes.
29. Press the tab key, and type N.
30. In the Description column, type Total Number of Sixes Made in Career.
31. Repeat the same procedure for the rest of the information in the table.
32. You are now ready to save the table again. To do so, click on the Save button on the right of the
round Office button in the top left-hand corner of the screen.
2

33. Now we are going to enter records into the table. To do so, click on View on the left of the
screen below the round Office button in the top left-hand corner of the screen, and click on
Datasheet View.
34. In the Player ID column, enter the team initials followed by the players initials. For example, if
Jesse Jones plays with the team Greggs United, you will enter JJGU in the Player ID column.
35. To go over into the Matches column, press the tab key on the keyboard or click inside that box.
Enter a number of your choosing.
36. Make up runs for each of the other columns Career Total, High Score, Centuries, Sixes, Fours,
Not Out, Ducks and enter them.
37. Repeat the same procedure to enter information for the other players.
38. After doing so, save the file again. To do so, click on the round Office button in the top left-hand
corner of the screen, and click on the word Save.
39. Close the table by clicking on the X on the right. Note: NOT the X that is in a red background in
the top right-hand corner of the screen.
Creating the Second Table The Personal table
40. You are creating the second table in the same database file Cricketers. If the database file is not
already open, then open it by double-clicking on its name in File Explorer. If the file is already
open, then continue reading.
41. Click on the Create menu at the top, and click on Table Design.
42. In the Field Name box, type Player ID, click in the Data Type box.
43. Click in the box below that contains 255, erase that number, and type 5.
44. Click in the Description box, and type Unique Number Identifying each player.
45. Click in the box below Player ID, and type Date of Birth. Click in the Data Type box, erase the
word Text, and type D.
46. Click in the box below the words Date of Birth, and type Address.
47. Click in the box below Address, and type the word Phone.
48. Click in the round Office button in the top left-hand corner of the screen, and click on Save.
49. Type the name for the table that is, Personal.
50. Click on OK.
51. When you see the message, There is No Primary Key Defined, click on No.
52. Now right-click on Player ID, and click on Primary Key.
53. Click on View on the left of the screen, and click on Datasheet View.
54. Enter the same player IDs you entered in the History table, and make up a date of birth, address,
and telephone number for each of the players.
55. Save the table again, by clicking on File, and clicking on Save.





3

Importing a Spreadsheet
56. To do question 4 of the Database section of the SBA that is, to import the spreadsheet file
Stats3 into the SBA, make sure that the database file is open.
57. Just below that menu name, you will see the word Excel. Position the mouse pointer on it. It
should read Import Excel Spreadsheet. Click on it.
58. Click on Browse, and select the spreadsheet file Stats3 from the folder it is stored in.
59. Click on Ok, and then on Finish.
60. You will see Sheet1 now appear in your database.
61. Double-click on the name Sheet 1.
62. Double-click on Field1, and type Surname.
63. Double-click on Field2, and type First Name.
64. Repeat the same procedure for each of the columns going across Team, Match1, Match2,
Match3, Match4, Total, Average, Special Score, Cash Prize, National Side, etc.
65. Right-click on the name Sheet1 on the left, and click Design View.
66. Change the data type for each field according to the table below.
Field Name Data Type Description
Surname Text
First Name Text
Match1 Number
Match2 Number
Match3 Number
Match4 Number
Total Number
Average Number
Special Score Number
Cash Prize Number
National Side Text

67. Save the table.
68. Close the table.
69. Right-click on the name of the table on the left, and click on Rename.
70. Type Statistics and press Enter.
71. Double-click on the name of the file.
72. Erase the rows at the top before the rows that contain the names of the players.
73. Save the table again.
There one last thing you have to do. That is to add the Player ID field to
the Statistics table. Try to figure out how to do that. If you need to,
you may ask someone else for help.
4

After that, you have to set up a relationship among all three tables. Try
to find that out on your own too. I have given you a whole lot of help
so far.

You might also like