Thursday, March 16, 2006

How to check spelling of a text, entered into textbox

The sample code below shows the idea – you move cursor to textbox, select text and then run spelling:

With Me.TextBox1
.SetFocus
.SelStart = 0
.SelLength = Len(.Text)
End With

DoCmd.SetWarnings False
DoCmd.RunCommand acCmdSpelling
DoCmd.SetWarnings True

1 comment:

  1. Anonymous8:54 PM

    Yo lo he usado en el evento afterUpdate.
    Gracias por la ayuda.

    ReplyDelete