PhillipsAndrew
Registered User.
- Local time
- Today, 22:32
- Joined
- Aug 7, 2003
- Messages
- 21
I’m looking for some advice on Referential Integrity...
I’m designing a database to loan Equipment. The system will be barcode based, but at it’s most basic a user will scan the equipment they want to borrow, scan the department they are taking it to and then ‘scan’ Confirm.
I’ve got no problems with the barcode side (not yet anyway!).
Simplified, I have 3 tables.
tblEquipment_Available:- contains equipment available for loan
tblDepart_Name:- Department that wants to borrow equipment
tblLoans:- Records what equipment is loaned.
There is a one-many relationship between tblEquipment_Available & tblLoans
And a one-many relationship between tblDepart_Name and tblLoans.
The trouble I have is that I need to allow for a user not scanning their department.
If the Department Name is not entered then Access, as expected, throws up an error for an unknown entry in tblDepart_Name.
Is removing Referential Integrity the answer?
If not, how do I get around this?
This system will be in use 24 hours a day by loads of inexperienced users, so I must allow for the case where department is skipped and not entered.
Is error trapping the answer?
Any help much appreciated...
P
I’m designing a database to loan Equipment. The system will be barcode based, but at it’s most basic a user will scan the equipment they want to borrow, scan the department they are taking it to and then ‘scan’ Confirm.
I’ve got no problems with the barcode side (not yet anyway!).
Simplified, I have 3 tables.
tblEquipment_Available:- contains equipment available for loan
tblDepart_Name:- Department that wants to borrow equipment
tblLoans:- Records what equipment is loaned.
There is a one-many relationship between tblEquipment_Available & tblLoans
And a one-many relationship between tblDepart_Name and tblLoans.
The trouble I have is that I need to allow for a user not scanning their department.
If the Department Name is not entered then Access, as expected, throws up an error for an unknown entry in tblDepart_Name.
Is removing Referential Integrity the answer?
If not, how do I get around this?
This system will be in use 24 hours a day by loads of inexperienced users, so I must allow for the case where department is skipped and not entered.
Is error trapping the answer?
Any help much appreciated...
P