>I have a COMBO BOX and I am using the STYLE of 0 (Dropdown Combo).
>I have another field (txtname) that is on top of the COMBO BOX and is VISIBLE =.F.. When I APPEND BLANK, I set txtname to VISIBLE =.T., it hides my COMBO BOX by appearing over it. I add my new record. In the LOSTFOCUS event of this field called txtname, I set VISIBLE=.F.
>Now you can see the COMBO BOX again. I would like to have the record I just added to be the value record or currenet record in the COMBO BOX. Any ideas?
do you mean you had just add a new record into txtbox, if so try:
ThisForm.Combo.Value = ThisForm.txtbox.Value
or
ThisForm.Combo.AddItem(ThisForm.txtbox.Value)
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only