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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top