R
Resurrection
I have searched but am still lost. Heres the issue: My database
tracks employees by what station they are working on a given day.
Because I have upwards of 800+ employees (and no IT dept) my main table
is Personnel which contains all relevant personal data. I had to
create a UserID for each employee that consists of LASTNAMEFM (where F
and M are the first and middle initials). I figured out the VB code to
make that happen without leaving it up to a data entry person to mess
up since that is how all my employee relevant data will be tracked and
I cannot have duplicates or errors.
That has to be that way because at the user end, a critical part of the
db will be allowing users to input a roster of stations and who is on
each Station for the day by the appropriate user name and people won't
want to input by some other form of UserID. I built a table Roster
(with Station fields and using a Date as the primary key) and a form
Rosterform that can take in the relevant data.
So how do I verify that a user has input a correct UserID and not just
entered part of a last name ? With this many employees I don't want to
try and have a list or combo box, as it would be huge. I'm figuring I
need to have VB code associated with the Before Update event, and I
think the way to do it is to step through my UserID field (from
Personnel table) comparing it to the data just entered in the Current
Focus.
Am I right or wrong and how do I implement this? Is there a better way?
tracks employees by what station they are working on a given day.
Because I have upwards of 800+ employees (and no IT dept) my main table
is Personnel which contains all relevant personal data. I had to
create a UserID for each employee that consists of LASTNAMEFM (where F
and M are the first and middle initials). I figured out the VB code to
make that happen without leaving it up to a data entry person to mess
up since that is how all my employee relevant data will be tracked and
I cannot have duplicates or errors.
That has to be that way because at the user end, a critical part of the
db will be allowing users to input a roster of stations and who is on
each Station for the day by the appropriate user name and people won't
want to input by some other form of UserID. I built a table Roster
(with Station fields and using a Date as the primary key) and a form
Rosterform that can take in the relevant data.
So how do I verify that a user has input a correct UserID and not just
entered part of a last name ? With this many employees I don't want to
try and have a list or combo box, as it would be huge. I'm figuring I
need to have VB code associated with the Before Update event, and I
think the way to do it is to step through my UserID field (from
Personnel table) comparing it to the data just entered in the Current
Focus.
Am I right or wrong and how do I implement this? Is there a better way?