Updating field on From

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a EmpID dropdown field with a query that selects all the Employees ID,
depending on the selection of the EmpID , I want to fill the next field with
the Employee's name that matches the EmpID matching the previous selection.

Thank you.
 
I have a EmpID dropdown field with a query that selects all the Employees ID,
depending on the selection of the EmpID , I want to fill the next field with
the Employee's name that matches the EmpID matching the previous selection.

Thank you.

If you just want to *display* the name, include the name in the Combo
Box's Row Source query and put a textbox on the form with a control
source

=cboEmpID.Column(n)

where cboEmpID is the name of the combo box, and (n) is the zero based
column in the row source query.

If you want to store the employee's name redundantly in another
table... well, you almost certainly DO NOT want to store the
employee's name redundantly. This form's table should not have the
name stored.

John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Listbox to database 3
Relational query problem??? 11
Combo box / Subform Question 7
how to clear a form then requery 1
List Values 1
Help Plz... 4
Need Help... 4
Error Message 2

Back
Top