Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating Multiple Fields from a Combo Box 1

Status
Not open for further replies.

Smeg77

Technical User
Oct 7, 2009
18
GB
I have a Combo Box that is run from a simple query.

All it does is look up the Workers from tblWorkers and gives me a list of the names.

Currently I have it set so that the ComboBox records this value in on of my table fields, and I would also like to do is get it to record the ID value from that query into a second field, is this possible.

Here's an example of what I'm after;

ID| F-Name| S-Name| Name
1 | Joe | Blogs | Joe Blogs
24| Jane | Doe | Jane Doe

Currently the Name Field goes into Table_Name in the table, and what I'd like is for the ID value to go into another field Table_ID
 
Use the Column property of the ComboBox, eg in the AfterUpdate event procedure of the combo:
Me!Table_ID = Me![name of combo].Column(0)

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
PHV Thanks for that, such a simple little solution, but one that has been doing my head in.

It works a treat so thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top