Duplicate Records

Pharcyde

Arriba Arriba!!!
Local time
Today, 11:50
Joined
Sep 4, 2003
Messages
116
OK, I'm sure I should know this, and I'm sure it should be easy. How do i stop (or at least invoke an error dialog) when duplicate values (In this case group number, time, or room number) are entered into my forms??? Just so no rooms can be double booked, if you catch my drift...

Please don't laugh, It's driving me bananas!!!!!!
 
You can try putting the room number as part of your PK along with time...

However this will not work i think cause a room will be boked:
01 sep 2003 12:00 to 13:00 Meeting room 1

next would be
01 sep 2003 12:30 to 14:00 Meeting room 1

The second would have to generate an error. This can only be done by checking the table with a query and/or VBA

Regards
 
Thanks a lot man. Thats pretty much what i thought. 2 thingsm though: Whats a PK? Whats the Dam like this time of year??
 
PK is a short for Primary Key

What is the Dam like ?? What do you mean?? Dam square???

Regards
 

Users who are viewing this thread

Back
Top Bottom