Lesson 1 db
Lesson 1 db
c. Select Blank database. (Depending on the version you have the pictures may differ and the outlook of
the blank database might be different but select either way.)
1|P ag e “ A I M F O R E X C E L L E N C E ” … E C M
d. Change the File Name from Database1 to KSSdb and thereafter click on the yellow folder icon to
browse location to save the file.
e. A File New Database dialog box will now open. Search for your folder you save in step 1 on your
desktop and select/open it.
Change the Save as type by selecting Microsoft Access 2002-2003 format as below and click ok.
g. The database opens and ready for you to design your table.
2|P ag e “ A I M F O R E X C E L L E N C E ” … E C M
h. Select the View icon/shortcut on top left corner. There are 2 View options that we will be working
with viz. Design View and Table View.
The Save As dialog box opens for you to save your table and rename it. Save as LearnerTbl. Click ok.
i. The following Design View opens for us to design the Fields of the LearnerTbl.
j. We are now going to type each field name and the data type of the expected data for each field.
Type the field names under Field Name and select the data types under Data Type as below.
For now we will not use the description column.
3|P ag e “ A I M F O R E X C E L L E N C E ” … E C M
N.B.
Go back to each field that has Short Text as its data type. Select each field one at a time and change
the field size under General at the bottom as follows:
AdminNo - change field size to 5
FullName - change field size to 40
Gender - change field size to 1
GradeDiv - change field size to 3
4|P ag e “ A I M F O R E X C E L L E N C E ” … E C M
l. The following blank table in your design opens.
n. Click on save and close the database. You have now designed your first database called KSSdb with 1
table called LearnerTbl and it should be saved in your project folder from step 1 as below.
N.B
Do not delete this folder with the database you created. It will be used in Lesson 2 with a Delphi project.
You can now create and design and practice new databases with 1 table each until it becomes easy n
different folders.
You will only need to design your own database from ‘scratch’ for PAT. For every other classwork database
question or exam database question, the database will be provided for you and you will be tested on the
Delphi code that interacts with the database.
In Lesson 2 you will be using the KSSdb you just created in this lesson.
5|P ag e “ A I M F O R E X C E L L E N C E ” … E C M