Dec 31, 2003 #1 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?
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?
Dec 31, 2003 #2 glalsop Technical User Aug 9, 2003 435 US 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 Upvote 0 Downvote
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