Forums

This topic is locked

Update text field with drop down choices

Posted 18 Feb 2003 12:45:51
1
has voted
18 Feb 2003 12:45:51 Peter Walker posted:
This sounds really easy but I'm buggered if I can figure it out...

I'm working on an update form. I want to be able to dispay the contents of the existing field, and at the side I want to be able to populate a drop down with new values that can be selected and passed over to the existing text field in order to update it. My question is how do I copy the value from the drop down and update the text field with it?

Thanks for any help

Pete

Replies

Replied 21 Feb 2003 10:48:20
21 Feb 2003 10:48:20 Stuart Harland replied:
If you call a procedure from your 'onChange' event in your list/menu you can populate a textbox with the value of the menu...like...

Sub mnuOne_OnChange(sender as Object, e as EventArgs)
txtBox.value = mnuOne.value
End Sub

********************
Stuart - Ferox

Edited by - Ferox101 on 21 Feb 2003 10:49:05

Reply to this topic