Spell checking just one record?


A

allie357

I have code in a button on my entry form that checks the spelling of a
description text box. The problem is that when I run it, it checks that
particular text box for all of the records I have entered in that
instance. I just want it to check the spelling for the current record's
text box only. Is it possible? How would I code this?
Thanks in advance.

Code:
--------------------------------------------------------------------------------

Private Sub CheckSpelling_Click()If MsgBox("Do you wish to check your
spelling?", vbYesNo, "Check Spelling") = vbNo Then
Cancel = True
Else Me.txtDescription.SetFocus
RunCommand acCmdSpelling
End If
End Sub
 
Ad

Advertisements

D

Dirk Goldgar

allie357 said:
I have code in a button on my entry form that checks the spelling of a
description text box. The problem is that when I run it, it checks
that particular text box for all of the records I have entered in that
instance. I just want it to check the spelling for the current
record's text box only. Is it possible? How would I code this?
Thanks in advance.

Code:
---------------------------------------------------------------------- ----------

Private Sub CheckSpelling_Click()If MsgBox("Do you wish to check
your spelling?", vbYesNo, "Check Spelling") = vbNo Then
Cancel = True
Else Me.txtDescription.SetFocus
RunCommand acCmdSpelling
End If
End Sub

Select the text you want to spell-check, like this:

With Me!txtDescription
.SetFocus
.SelStart = 0
.SelLength = Len(.Text)
End With

RunCommand acCmdSpelling
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top