A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Spell checking just one record?



 
 
Thread Tools Display Modes
  #1  
Old November 10th, 2006, 07:13 PM posted to microsoft.public.access.forms
allie357
external usenet poster
 
Posts: 61
Default 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  
Old November 10th, 2006, 07:25 PM posted to microsoft.public.access.forms
Dirk Goldgar
external usenet poster
 
Posts: 1,164
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:20 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.