Hi,
I’ve used code posted by Hans in a previous post to add this code to the “On Exit” function of the BillTitle field. It seems to work fine and allows me to change the spelling. However if I go to click into another field but ‘ignore’ or ‘cancel’ the suggestion box, the cursor goes back into the same field and when I try to click out of it I get the same error – essentially I get stuck in a loop until I accept the suggestion. Here is the code I’ve implemented:
Private Sub BillTitle_Exit(Cancel As Integer)
‘If the textbox contains data run the Spell Checker after data is entered.
If Len(Me!BillTitle & “”) > 0 Then
With Me!BillTitle
.SelStart = 0
.SelLength = Len(.Text)
End With
DoCmd.SetWarnings False ‘ If there are no errors, don’t report spell check is complete
DoCmd.RunCommand acCmdSpelling
DoCmd.SetWarnings True ‘ Turn warnings back on
Else
Exit Sub
End If
End Sub
If anyone can help that would be great.
Cheers,