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

Moving selected data from combo to text box 1

Status
Not open for further replies.

jpl458

Technical User
Sep 30, 2009
337
US
Have a form with a text box and a combo box. Text box name is text0. Combo is called eventcomb. The combo box displays data in an event table where col1 1 is a number and is primary key,next coll is field1 and contains a list of event types. I want to select an event type from the combo box and move it to the text box. Using onclick event in combo box for vb code.

Text0.defaultvalue = eventcomb.field1

It copies the primary key to the text box not the event name. I have changed the bound field in combo, as well as other tries. but nothing works.

Would appreciate help.

Thanks in advance

jpk
 
In the AfterUpdate event procedure of the combo:
Me!text0 = Me!eventcomb.Column(1)

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Worked like Champ. Thanks again

jpl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top