Q: Can you run the spell checker automatically after a user enters text into a text box or memo field?
A: Yes, here is the code to do it. I got it from databasedev.co.uk and modified it for our factory2000 sample case. It will spell check a comments field I added to the labor tickets. It uses the RunCommand method of DoCmd.
Private Sub memComments_AfterUpdate() 'If the comments field contains data run the 'Spell Checker after data is entered. If Len(Me!memComments & "") > 0 Then DoCmd.RunCommand acCmdSpelling Else Exit Sub End If End Sub
I will post a sample database to our sample database collection later. I also cross post this to the Access Reports and Forms thread.
--Dan
The sample database is now available from the following link: