Spell Check Help

  • Thread starter Thread starter bladelock
  • Start date Start date
B

bladelock

I have this code in the AfterUpdate in a TextBox set for a memo:

If Len(Me!casefacts & "") > 0 Then
DoCmd.RunCommand acCmdSpelling
Else
Exit Sub
End If

everytime the spell check executs, it check the whole form. How can I get it
to just check that one textbox and not everything else.
 
bladelock said:
I have this code in the AfterUpdate in a TextBox set for a memo:

If Len(Me!casefacts & "") > 0 Then
DoCmd.RunCommand acCmdSpelling
Else
Exit Sub
End If

everytime the spell check executs, it check the whole form. How can I get it
to just check that one textbox and not everything else.


You need to select the text to be spell checked:

If Len(Me!casefacts & "") > 0 Then
Me!casefacts.SelStart = 0
Me!casefacts.SelLength = Len(Me!casefacts)
DoCmd.RunCommand acCmdSpelling
Else
Exit Sub
End If
 
Back
Top