Populating Fields

  • Thread starter Thread starter ApriLee1983
  • Start date Start date
A

ApriLee1983

Once I enter an employee ID, I want access to populate the first,last name
fields accordingly so I don't have to type it in every single time.

Example: I have Joe Smith with ID 9999. I want to type 9999 in a field and
have the name populated.
 
Use a combo box and several textboxes to display the results.

In the AfterUpdate event of the combo box, use some code similar to (air
code):

Sub cboID_AfterUpdate()
Me.txtFName = Me.cboID.Column(1)
Me.txtLName = Me.cboID.Column(2)
End Sub
 

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

Back
Top