Professional Documents
Culture Documents
Lab #7
Lab #7
7
Creating a Data Table and Modifying Field Properties
1. Open MS Access. Create a database (2002-2003 format) with a filename Clinic in your folder
(Make sure that you save it in your created folder in Local Disc D).
2. Create a table named Patients. In the Design View, input the following fields: PatientCode
(Number); PatientFName (Text); PatientLName (Text); PatientAddress (Text); PatientCity (Text);
PatientZipCode (Text); PatientPhone (Text); PatientBirth (Date/Time); and PatientPhoto (OLE
Object). For the moment, we will not define a primary key. Save your table by right-clicking the
Patients Tab and clicking Save.
3. Create another table named Doctors with the following fields: DoctorCode (Text); DoctorFName
(Text); DoctorLName (Text); and DoctorSpecialty (Text). Again, we will not define a primary key.
Save your table.
4. Create another table named Entries with the following fields: EntryNumber (Autonumber);
EntryRoom (Number); EntryBed (Text); and EntryDate (Date/Time). Again, we will not define a
primary key.
5. Now, let us modify the field properties. Edit the Patients table by following these indications:
Field Name
PatientCode
PatientFName
PatientLName
PatientAddres
s
PatientCity
PatientZipCod
e
PatientPhone
PatientBirth
9. Now, try to see the format with the values by switching to Datasheet View. To do this, follow one
of the following:
a. Right-click the tabs with table names and select Datasheet View.
b. At the Navigation Pane at the left side of your screen, right-click the table and click Open.
10. Try to input records for each column at every table.
11. Your instructor will check your work before you close your window.