S
stephent
Hi,
I am in the process of building a db and need some help please.
The db contains 3 tables: Employees, Cars and Trips (all related)
When an employee is first registered in tblEmployee, the driver's licence
details (including expiry date) are recorded in the appropriate fields, also
they are given an unique Employee_ID.
As the employees come to 'hire' a car from the vehicle pool, their Employ_ID
needs to be entered into the tblTrip table. What I would like to do is to
only allow their Employ_ID to be entered if their licence is still valid -
in other words not allow any employee to hire a vehicle if their licence has
expired.
Would it work better if the validation blocked entry into the next field
(after Employee_ID), which is Trip_ID (primary key)?
I'm still struggling with writing code, so would appreciate help with this
one please.
Basically a 'what to put where' question I think.
Thanks in advance,
Steve.
Regards,
Steve Thomas
I am in the process of building a db and need some help please.
The db contains 3 tables: Employees, Cars and Trips (all related)
When an employee is first registered in tblEmployee, the driver's licence
details (including expiry date) are recorded in the appropriate fields, also
they are given an unique Employee_ID.
As the employees come to 'hire' a car from the vehicle pool, their Employ_ID
needs to be entered into the tblTrip table. What I would like to do is to
only allow their Employ_ID to be entered if their licence is still valid -
in other words not allow any employee to hire a vehicle if their licence has
expired.
Would it work better if the validation blocked entry into the next field
(after Employee_ID), which is Trip_ID (primary key)?
I'm still struggling with writing code, so would appreciate help with this
one please.
Basically a 'what to put where' question I think.
Thanks in advance,
Steve.
Regards,
Steve Thomas