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

How to copy value from Combo Box to Text box 1

Status
Not open for further replies.

infinitx

Technical User
Feb 26, 2004
212
US
Hi,
I am designing a database and have a programming question.
On one form, I have a combo box with different values. I also have a text box.

When I select a value from the combo box and hit add record, how can I make it so the value that I selected in the combo box, is copied to the text box and added it to the table?

I tried this code in the Add Record Command Button:
Combo2.Value=ICL1.Value

Combo2 is the combo box and ICL1 is the text box.
It did not seem to work.

Thanks in advance!
 
Have you tried this ?
ICL1.Value=Combo2.Value

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top