Connecting Tech Pros Worldwide Forums | Help | Site Map

MS Access Spell Check

Familiar Sight
 
Join Date: Nov 2006
Posts: 134
#1: Dec 25 '06
I have seen posting on Spell check problem, but seem like not solution. Therefore I post this question again.

How can I spell check on one record and on one field such as Notes in my Form. MS Access seem to spell check on all my records and other fields.

missinglinq's Avatar
Moderator
 
Join Date: Nov 2006
Location: Richmond, Virginia USA
Posts: 3,002
#2: Dec 25 '06

re: MS Access Spell Check


Sorry to say I can't remember where I got this from, but it'll do the job:

Expand|Select|Wrap|Line Numbers
  1. Private Sub SpellCheck_Click()
  2. With Me!Notes
  3.     .SetFocus
  4.    If Len(.Value) > 0 Then
  5.       DoCmd.SetWarnings False
  6.      .SelStart = 1
  7.      .SelLength = Len(.Value)
  8.      DoCmd.RunCommand acCmdSpelling
  9.     .SelLength = 0
  10.     DoCmd.SetWarnings True
  11.   End If
  12. End With
  13. End Sub
Familiar Sight
 
Join Date: Nov 2006
Posts: 134
#3: Dec 25 '06

re: MS Access Spell Check


Quote:

Originally Posted by missinglinq

Sorry to say I can't remember where I got this from, but it'll do the job:

Expand|Select|Wrap|Line Numbers
  1. Private Sub SpellCheck_Click()
  2. With Me!Notes
  3.     .SetFocus
  4.    If Len(.Value) > 0 Then
  5.       DoCmd.SetWarnings False
  6.      .SelStart = 1
  7.      .SelLength = Len(.Value)
  8.      DoCmd.RunCommand acCmdSpelling
  9.     .SelLength = 0
  10.     DoCmd.SetWarnings True
  11.   End If
  12. End With
  13. End Sub

Wow ! it Work, thank you so much for your fast response
missinglinq's Avatar
Moderator
 
Join Date: Nov 2006
Location: Richmond, Virginia USA
Posts: 3,002
#4: Dec 25 '06

re: MS Access Spell Check


That's why we're here!

Happy Holidays!
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,747
#5: Dec 30 '06

re: MS Access Spell Check


Nice one ML - Good answer :)
Reply