I'm not that good in VBA and trying to get this figure out if you can help with a code or Macro.
Attached you can find example of what I'm trying to do. The database have two tables.
tblDrivers: with list of all drivers and license expire date
tblJourney: Where the journey information is added along with the driver ID
I have a query (queValidDrivers) that contain only the drivers with valid license
In the form (frmAddJourney), when entered driver ID doesn't have a valid license (based on the mentioned query) a massage to highlight that the driver doesn't have valid license.
I have tried If dcount in BeforeUpdate event of the form with no luck
Attached you can find example of what I'm trying to do. The database have two tables.
tblDrivers: with list of all drivers and license expire date
tblJourney: Where the journey information is added along with the driver ID
I have a query (queValidDrivers) that contain only the drivers with valid license
In the form (frmAddJourney), when entered driver ID doesn't have a valid license (based on the mentioned query) a massage to highlight that the driver doesn't have valid license.
I have tried If dcount in BeforeUpdate event of the form with no luck