Richard Horne
Member
- Local time
- Today, 03:20
- Joined
- Oct 15, 2020
- Messages
- 55
So there are a thousand threads on how to use SelStart but I'm so far unable to find one that tells me how to make it work where a combo box has an input mask.
I'm using Access 365.
My combo box is called cbo_nsn_filter. My onClick event code is:
I've tried with and without SetFocus. I've also tried using SendKeys but that didn't work either.
My input mask is: 0000\-00\-000\-0000;0;
But no matter what I do, SelStart does not set the cursor to the start of the combo.
Any suggestions?
I'm using Access 365.
My combo box is called cbo_nsn_filter. My onClick event code is:
Code:
Private Sub cbo_nsn_filter_Click()
Me.cbo_nsn_filter.SetFocus
Me.cbo_nsn_filter.SelStart = 0
End Sub
I've tried with and without SetFocus. I've also tried using SendKeys but that didn't work either.
My input mask is: 0000\-00\-000\-0000;0;
But no matter what I do, SelStart does not set the cursor to the start of the combo.
Any suggestions?