UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Double Booking?    
 
   
Sknight126
post Oct 19 2004, 10:58 AM
Post #1

New Member
Posts: 11



Hey. this may seem obvious but i cannot find a way to solve this problem. i have a booking system and want to create a query that only lets a Customer ID book onto a course only once, but to many others. and to also display an error message if the customer tries to book on the same course twice. wondering if anyone could help, would be very grateful
Regards
Stu
Go to the top of the page
 
+
ScottGem
post Oct 19 2004, 11:00 AM
Post #2

UtterAccess VIP / UA Clown
Posts: 25,091
From: LI, NY



its not obvious and we would need to know your table strucutre to advise.

What you should have is a join table that lists CustomerID and CourseID. You can set a multi-field index on those two to prevent a customer being entered more than once for a course.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 25th May 2013 - 05:04 AM