View Full Version : equipment control db


scottappleford
07-12-2005, 03:27 PM
Hi

I am new to db and would like to do a simple db for items of equipment going out and coming back in showing who has been allocated what.

So one person could have many item but the item can only be issued once until it is booked back in. I would also like a history of transactions.

Only something simple, so we have a record who has what if we need to find something and when they had it etc.

Many Thanks

Scott

ColinEssex
07-13-2005, 12:48 AM
So what have you done so far? :confused: Hard to tell from your post what the problem actually is

List the tables you have, and their relationships

Col

neileg
07-13-2005, 01:53 AM
There are often questions psoted about this form of application. Do a search and you may find some examples that will get you started.

scottappleford
07-13-2005, 05:17 AM
Hi Neil

Basically i have not done too much.

I create three tables.

One for the employee - name, department etc
One for the Equipment - make, model etc
One for the transaction - date out, date in etc.
I then put the employee id and equipment id fields into the transaction table and created a one to many relationship - one being the employee/equipemnt and many being transaction.

I then created a form but thats as far as i got because it will not let me enter data?

Thankyou

Scott

scottappleford
07-13-2005, 05:18 AM
Hi Neil

Basically i have not done too much.

I create three tables.

One for the employee - name, department etc
One for the Equipment - make, model etc
One for the transaction - date out, date in etc.
I then put the employee id and equipment id fields into the transaction table and created a one to many relationship - one being the employee/equipment and many being transaction.

I then created a form but thats as far as i got because it will not let me enter data?

Thankyou

Scott

neileg
07-13-2005, 05:32 AM
You have a many to many relationship. Your transaction table is known as the junction table. It should hold the PK of the equipment and the PK of the employee.

Do a search in these forums for many to many relationships. There's plenty of help.