S
ScottS
I have been using input masks for dates on forms. I usually add code to
force the cursor to the beginning of the text box using SelStart.
Private Sub txtDate1_GotFocus()
Me.txtDate1.SelStart = 0
End Sub
I created a form and the above field functioned fine. After I added more
controls and code I began to get a Run-time 2185 error -You can't reference a
property or method for a control unless the control has the focus.
Anyone know what causes this or is my form corrupted in some way?
Thanks in advance for any help or insight,
force the cursor to the beginning of the text box using SelStart.
Private Sub txtDate1_GotFocus()
Me.txtDate1.SelStart = 0
End Sub
I created a form and the above field functioned fine. After I added more
controls and code I began to get a Run-time 2185 error -You can't reference a
property or method for a control unless the control has the focus.
Anyone know what causes this or is my form corrupted in some way?
Thanks in advance for any help or insight,