Spellchecking

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

Is there a way of using the spellchecker in code, not to check the code
itself but to check the contents of text boxes with out using the menu item.
 
Steve said:
Is there a way of using the spellchecker in code, not to check the
code itself but to check the contents of text boxes with out using
the menu item.

To check a specific control:

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

RunCommand acCmdSpelling

To check the current record:

RunCommand acCmdSelectRecord
RunCommand acCmdSpelling
 
Back
Top