chrisgunny
Registered User.
- Local time
- Today, 05:23
- Joined
- Apr 6, 2013
- Messages
- 16
Hi All,
Really need some help with a simple booking database I have created, its all finished but I am no good when it comes to VBA and how to write code, would somebody be able to write some code for me to prevent double bookings?
Attached is a copy of the database.
The database is a simple booking system, I need some code to do the following:
When a user completes the form "BookingsF" and clicks submit, the code runs and looks up table "BookingsT" to confirm the following:
Asset ID being booked in the form does not already appear as a record in the table, with overlapping requested from date or requested to date (e.g its doesnt allow double booking of the same asset), there is also one other consideration to allow for the code needs to ignore any bookings in the table that have the booking cancelled field ticked.
Any help would be grately appriecated.
Really need some help with a simple booking database I have created, its all finished but I am no good when it comes to VBA and how to write code, would somebody be able to write some code for me to prevent double bookings?
Attached is a copy of the database.
The database is a simple booking system, I need some code to do the following:
When a user completes the form "BookingsF" and clicks submit, the code runs and looks up table "BookingsT" to confirm the following:
Asset ID being booked in the form does not already appear as a record in the table, with overlapping requested from date or requested to date (e.g its doesnt allow double booking of the same asset), there is also one other consideration to allow for the code needs to ignore any bookings in the table that have the booking cancelled field ticked.
Any help would be grately appriecated.