I have put this code under my spell check button to spell check my notes field, but if there are no notes and i click on the spell button. I get Run time error. Invalid use of Null.
What can i put so that if there is no text in the notes and i click on the spell button, it then displays a msg saying it cant check spelling as there is nothing in the notes box
With Me.FieldName
.SetFocus
.SelStart = 0
.SelLength = Len(Me.FieldName)
End With
DoCmd.RunCommand acCmdSpelling
What can i put so that if there is no text in the notes and i click on the spell button, it then displays a msg saying it cant check spelling as there is nothing in the notes box
With Me.FieldName
.SetFocus
.SelStart = 0
.SelLength = Len(Me.FieldName)
End With
DoCmd.RunCommand acCmdSpelling