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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Storing two fields from a dropdown

Status
Not open for further replies.

puforee

Technical User
Oct 6, 2006
741
US
I have a dropdown selection (on a form) that shows two fields from a table. It stores one field in the forms underlining table. How can I set it up so it stores both fields from the dropdown into two fields in the forms underlying table?

Thanks,
 
You could update a hidden, bound control to the second field in the after update event.
 
Example please. Let's say the bound field is "3-Letter Code" and the second field that I need to store is "Customer Name".

Can you show mw and example?
 
In the after update event of the combo:

Me.txt3LetterCode=Me.cboCombo.Column(1)

Where txt3LetterCode is the name of a bound control and 1 is the number of the column that contains the data, starting numbering from zero.
 
Thank you ....got it and will put it in tonight.

;-D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top