I have a function that checks the spelling of the text entered (when using afterupdate event)
however the spell checker continues on to check other text box controls! text fields that are locked and do not require checking.
how do I prevent this?
the code below
Code:
'spell check a formfield
Public Sub SpellChecker(TextField As Control)
With TextField
.SetFocus
.SelStart = 1
.SelLength = Len(.Text)
DoCmd.SetWarnings False
.SelLength = 0
DoCmd.RunCommand acCmdSpelling
DoCmd.SetWarnings True
.SetFocus
End With
End Sub