wcboyd
Registered User.
- Local time
- Yesterday, 18:24
- Joined
- Aug 30, 2004
- Messages
- 50
I am in the process of writing a scheduling application for a friend. One of his requirements is that the same resources can not be scheduled for more than one pick up at the same time. A resource is basically a "kit" made up of 1 or 2 drivers and a van.
The schedule table has basically the following columns:
DelId (Unique ID ~ Auto Increment)
CustomerID
BillingID
PickUpDate
PickUpTime
Duration (in minutes)
DestinationID
DeliveryDate
DeliveryTime
Duration
ResourceID
I know that on the Add PU/Del Form I need to check this table first to make sure that the new record is not overlapping either the PickUpDate/Time/Duration AND the DeliveryDate/Time/Duration for THAT ResourceID.
Any thoughts?
Thanks in Advance!
The schedule table has basically the following columns:
DelId (Unique ID ~ Auto Increment)
CustomerID
BillingID
PickUpDate
PickUpTime
Duration (in minutes)
DestinationID
DeliveryDate
DeliveryTime
Duration
ResourceID
I know that on the Add PU/Del Form I need to check this table first to make sure that the new record is not overlapping either the PickUpDate/Time/Duration AND the DeliveryDate/Time/Duration for THAT ResourceID.
Any thoughts?
Thanks in Advance!