Create a form with all of the desired data fields including the employee's
primary key. Now create an unbound combo box for employee selection. Make
sure that the combo box's underlying query includes the Primary Key for the
'employee works number' plus whatever other fields are needed to correctly
identify the particular employee to be selected, such as LastName,
FirstName. Name the combo box "EmployeeSelect". Enter the following code in
the AfterUpdate event for the combo box:
DoCmd.GoToControl "EmployeeWorks Number" (or whatever is the actual name of
the primary key field. Include quotes)
DoCmd.FindRecord Me![EmployeeSelect]
That's all. When the employee is selected from the combo box the form will
populate with whatever fields are in the employee's record having that
primary key.
Con Giacomini
"godber" <mi***********@ntlworld.com> wrote in message
news:1f**************************@posting.google.c om...
I need to populate text boxes for instance with employee information
using their unique employee works number selected from a combo box.
Can anyone help, I am told thru visual basic this can be achieved.