Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Spellcheck with MS Access 2007 runtime

Status
Not open for further replies.

henley12

Programmer
Mar 26, 2004
17
0
0
US
Is there a way to get Spellcheck to work with MS Access 2007 Runtime version? Perhaps I am missing something simple. Thanks.
 
How are ya henley12 . . .

As a first shot ... try the following (you'll have to incoorperate in the origional mdb then convert to the runtime again):
Code:
[blue]Public Sub SpellCheck(Optional ctl)
   Dim flg As Boolean
      
   If IsMissing(ctl) Then
      DoCmd.RunCommand acCmdSelectRecord
      flg = True
   ElseIf ctl.ControlType = acTextBox Then
      ctl.SelStart = 0
      ctl.SelLength = Len(ctl)
      flg = True
   End If

   If flg Then DoCmd.RunCommand acCmdSpelling

End Sub[/blue]
[red]Do not use the routine in any Focus or Update event because errors are raised as the events are trying to save while the spellchecker is trying to edit![/red]

Example using the DoubleClick event of a text/memo control to spellcheck only the text/memo control on any form/subform:
Code:
[blue]   Call SpellCheck(Me!TextboxName)[/blue]
[blue]Your Thoughts? . . .[/blue]


Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top