i want to stop the user from being able to book somebody using the same facility on the same day and time but i am not sure how to go about doing this. would it be a query, or could i apply a macro to check this?
yea its is Booking ID, Booking Time, Booking Date, Facility ID, Facility Name, Facility Cost, Member ID, Member Name, Discount ID, Discount Amount and total cost
This is used to validate data on the form before its entered into the table.
You may need to add a cloumn to your existing table that is a concatonation of the Booking Time, Booking Date, Facility ID.
Then on your form a hidden text box that concatonates the above feilds on the form as they are entered and then use that value to test against the table.
I.e If time entered is 9am and day is today and Facility ID is 7 then the hidden concatonated field on the form would read,,,,, 9AM-2/12/09-7.
So the beforeupdate event on the hidden textbox would be used to check the table. Here is a little more on the event type.