Private Sub txtDescription_AfterUpdate() If Len(Me!txtDescription & "") > 0 Then With Me!txtDescription .SetFocus .SelStart = 0 .SelLength = Len(Me!txtDescription) End With DoCmd.SetWarnings False DoCmd.RunCommand acCmdSpelling DoCmd.SetWarnings True End If End Sub |
I use DoCmd.SetWarnings so that the user doesn't get a message box popping up saying that the Spelling Check is complete.
No comments:
Post a Comment