Move to last chosen record in a combobox

cpampas

Registered User.
Local time
Today, 12:45
Joined
Jul 23, 2012
Messages
221
Hello,
i have an unbound combobox based on a group query, and after chosing one record I would like to have that same record highlighted the next time I setfocus to that combo, wich will happen from another control ( me.mais.setfocus)

Anyway to do this?
 
save the current value of the combobox when it Loses Focus.
when it got focus assign, the previous value to it.
 
That was what I was trying to do, I saved the value of the combo into a text box, eventhough it is a string it will be unique in the combobox data

Me.lastMV = Me.mais.Column(0)

then from another control i am struggling to assing the value to the combo

' set the focus
Me.mais.SetFocus

' assign the previous value
 
You do not even need to set focus?

Me.Mais = Me.lastMV
 
oh my Gosh, why cant I see something so obvious, do I need a neurologist ?
Thanks for your help
 

Users who are viewing this thread

Back
Top Bottom