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

Can I make a Combo Box show Last Item Chosen?

Status
Not open for further replies.

fishey

Instructor
Oct 30, 2002
24
US
Is there a way to make the "default entry" in a Combo Box display the last item chosen from the Combo Box when it was last used?
 
Maybe try using a global variable:

In a code module:
Public myLoadValue as String

Behind the form:
Private Sub Combo2_Change()
myLoadValue = Me.Combo2.Value
End Sub

Private Sub Form_Current()
Me.Combo2.Value = myLoadValue
End Sub

Private Sub Form_Load()
Me.Combo2.Value = myLoadValue
End Sub


Try something like that.




-Gary
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top