If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Spell checking just one record?
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 |
#2
|
|||
|
|||
Spell checking just one record?
"allie357" wrote in message
oups.com 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 -- Dirk Goldgar, MS Access MVP www.datagnostics.com (please reply to the newsgroup) |
Thread Tools | |
Display Modes | |
|
|