C
Creeater
Guest
I have the following code that when I click the Spell Check button it checks the Summary_Incident field. What I would like is where ever the cursor is at the time, if I click the Spell Check button, it will check that field. Please note this is the only code that I could get to work that would check the selected record only. Previous codes wanted to spell check all records. Thanks.
Private Sub SpellCheck_Click()
With Me.Summary_Incident
.SetFocus
.SelStart = 0
.SelLength = Len(Me.Summary_Incident)
End With
DoCmd.RunCommand acCmdSpelling
End Sub
Private Sub SpellCheck_Click()
With Me.Summary_Incident
.SetFocus
.SelStart = 0
.SelLength = Len(Me.Summary_Incident)
End With
DoCmd.RunCommand acCmdSpelling
End Sub