Controlling Spell Checker - ms-access
This is a discussion on Controlling Spell Checker - ms-access ; Is there way to have control over the MS-Access spell checking (besides just launching it)? We want to tell it to check all records, but skip certain fields (or, alternatively, ONLY check certain fields). Is that possible? Alternatively, if that's ...
![]() |
| | LinkBack | Thread Tools | Display Modes |
|
#1
| |||
| |||
| launching it)? We want to tell it to check all records, but skip certain fields (or, alternatively, ONLY check certain fields). Is that possible? Alternatively, if that's not, we noticed that the spell checker skips fields that are disabled. So one could disable the fields to be skipped; run the spell checker; and then re-enable those fields when done. But how would one know when it's done. Any ideas/suggestions/hints/etc.? Thanks, Neil |
|
#2
| |||
| |||
|
For the controls that you want to omit from the spell check, goto Properties > Other and enter “skip” (without the quatation marks) in the Tag Property. Private Sub SpellCheckLimited_Click() Dim ctrl as Control For Each Ctrl In Me.Controls If TypeOf Ctrl Is TextBox Then If Ctrl.Tag = "skip" Then Ctrl.Enabled = False End If End If Next DoCmd.RunCommand acCmdSpelling For Each Ctrl In Me.Controls If TypeOf Ctrl Is TextBox Then If Ctrl.Tag = "skip" Then Ctrl.Enabled = True End If End If Next End Sub When it's done you'll get a popup box with default "Spell Check Complete." You could, of course, reverse the process by using If Ctrl.Tag <> "skip" Then to disable/enable the fields not so tagged. Good Luck! -- There's ALWAYS more than one way to skin a cat! Answers/posts based on Access 2000 Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...ccess/200704/1 |
|
#3
| |||
| |||
|
Those first two lines of my post should read: For the controls that you want to omit from the spell check, goto Properties - Other and enter “skip” (without the quatation marks) in the Tag Property. -- There's ALWAYS more than one way to skin a cat! Answers/posts based on Access 2000 Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...ccess/200704/1 |
|
#4
| |||
| |||
|
The following code, when placed in a module can be called from a button on a form. It will spell check only the text boxes on that form. Public Function Spell() ' Arvin Meyer 9/17/1998 ' Adapted from code by Terry Wickenden Dim ctlSpell As Control Dim frm As Form Set frm = Screen.ActiveForm DoCmd.SetWarnings False ' Enumerate Controls collection. For Each ctlSpell In frm.Controls If TypeOf ctlSpell Is TextBox Then If Len(ctlSpell) > 0 Then With ctlSpell .SetFocus .SelStart = 0 .SelLength = Len(ctlSpell) End With DoCmd.RunCommand acCmdSpelling End If End If Next DoCmd.SetWarnings True End Function -- Arvin Meyer, MCP, MVP http://www.datastrat.com http://www.mvps.org/access http://www.accessmvp.com "Neil" news:_zFRh.5515$u03.2006@newssvr21.news.prodigy.ne t... > Is there way to have control over the MS-Access spell checking (besides > just launching it)? We want to tell it to check all records, but skip > certain fields (or, alternatively, ONLY check certain fields). Is that > possible? > > Alternatively, if that's not, we noticed that the spell checker skips > fields that are disabled. So one could disable the fields to be skipped; > run the spell checker; and then re-enable those fields when done. But how > would one know when it's done. > > Any ideas/suggestions/hints/etc.? > > Thanks, > > Neil > |
|
#6
| |||
| |||
|
Neil wrote: "Thanks, Arvin. The problem I'm running into, though, is that the client wants to check only a particular field, but for all records (in Continuous Forms view) at once, not as each record is edited." My code posted above does exactly what you want, Neil. Have you tried it out? -- There's ALWAYS more than one way to skin a cat! Answers/posts based on Access 2000 Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...ccess/200704/1 |
|
#7
| |||
| |||
|
Hello. I just saw your post. Since my original message was cross-posted, but you only responded in this newsgroup, I didn't see your message because I was looking in another newsgroup. So, yes, your solution would work. Thanks for that. "missinglinq via AccessMonster.com" news:706090214e250@uwe... > Neil wrote: > "Thanks, Arvin. The problem I'm running into, though, is that the client > wants to check only a particular field, but for all records (in Continuous > Forms view) at once, not as each record is edited." > > My code posted above does exactly what you want, Neil. Have you tried it > out? > > -- > There's ALWAYS more than one way to skin a cat! > > Answers/posts based on Access 2000 > > Message posted via AccessMonster.com > http://www.accessmonster.com/Uwe/For...ccess/200704/1 > |
|
#8
| |||
| |||
|
Hi, I have a similar problem. I want to be able to call a table (or select a table(s) from a form then run spell check on that table. I don't want users to open the tables directly. How do I get acCmdSpelling to do this? Seems simple
|
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
All times are GMT -4. The time now is 07:01 PM.




Linear Mode