Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Auto Spell check within a Form

Avatar of nedbeam
nedbeamFlag for United States of America asked on
Microsoft Access
2 Comments1 Solution304 ViewsLast Modified:
When I create database I remove all but the core menu items which removes the capability to run a spell check from the menu.  I did the research and found on this site in the following post a partial answer to my problem of adding the capability at the form level via a button or auto.

https://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_23315268.html

I have used the following code;

Private Sub YourTextField_AfterUpdate()
'If the textbox contains data run the Spell Checker after data is entered.
    If Len(Me!YourTextField & "") > 0 Then
        DoCmd.RunCommand acCmdSpelling
            Else
        Exit Sub
    End If
End Sub

But this is where the problem arises, the above code works fine but the minute it corrects the last word in the field you are on it automatically goes on to the next record and starts checking that one.  I am trying to figure out how to prevent it from continuing on to the next record and instead stop right there and allow you close the spell checker window or close auto after last correction in a field.