I am relatively new to using Access and I have been asked to put together a database for allocating keys at our school. Every member of staff has certain keys allocated to them based on their role. There are also some keys which open multiple rooms. So for example a teacher will need a classroom key and a key for the storeroom and a key for the staffroom. The classroom key and the storeroom key are the same but the staffroom key is different. (This is a simple example).
I have created a table DOOR KEYS with the following fields:
KeyID: Door Key: Key Number: RoleID
A table called ROLES with fields
RoleID: Role
A Table called STAFF with fields
StaffID: LastName: FirstName: DepartmentID: LocationID: DateRequested: KeysIssued: Date Returned: RoleID
A table called LOCATION with
LocationID Location
A table called DEPARTMENT with
DepartmentID; Department
all of the first fields are key fields
I need to be able to link these to allow me to create a form for issuing keys based on the Role. I also need to be able to create a report based on the person's name and the keys they have been issued with.
I am really stuck on how I create the relationships between these tables and how I can get a report something like as follows
Name Key Key Number Date Issued
John Smith Classroom 1 1/1/11
John Smith Storeroom 1 1/1/11
John Smith Staffroom 2 2/1/11
Any help with this would be greatly appreciated
Gordon
I have created a table DOOR KEYS with the following fields:
KeyID: Door Key: Key Number: RoleID
A table called ROLES with fields
RoleID: Role
A Table called STAFF with fields
StaffID: LastName: FirstName: DepartmentID: LocationID: DateRequested: KeysIssued: Date Returned: RoleID
A table called LOCATION with
LocationID Location
A table called DEPARTMENT with
DepartmentID; Department
all of the first fields are key fields
I need to be able to link these to allow me to create a form for issuing keys based on the Role. I also need to be able to create a report based on the person's name and the keys they have been issued with.
I am really stuck on how I create the relationships between these tables and how I can get a report something like as follows
Name Key Key Number Date Issued
John Smith Classroom 1 1/1/11
John Smith Storeroom 1 1/1/11
John Smith Staffroom 2 2/1/11
Any help with this would be greatly appreciated
Gordon