dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

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 ...


Home > Database Forum > Other Databases > ms-access > Controlling Spell Checker

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 04-07-2007, 01:01 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Controlling Spell Checker

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


Reply With Quote
  #2  
Old 04-07-2007, 09:44 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Controlling Spell Checker

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

Reply With Quote
  #3  
Old 04-07-2007, 09:46 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Controlling Spell Checker

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

Reply With Quote
  #4  
Old 04-07-2007, 05:34 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Controlling Spell Checker

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" wrote in message
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
>



Reply With Quote
  #5  
Old 04-07-2007, 09:11 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Controlling Spell Checker

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. I could change your code
below to use the control name for that one control, instead of the control
type. But the problem remains that it would still only check for that one
record.

I proposed to the client checking the spelling of that one field as it's
edited. He said that's fine, except that the spell checker comes up EVERY
time, even if there are no spelling mistakes. He doesn't like that.

So I'm left with two options: 1) find a way to run the spell checker for all
records in the form, but only for a particular field in each record; or 2)
find a way to have the spell checker pop up after that particular field is
edited, but only if there's a spelling error.

I guess there's a third option: find a third-party spell checker that
provides more programmatic control.

Thanks!

Neil


"Arvin Meyer [MVP]" wrote in message
news:ecv92xVeHHA.3884@TK2MSFTNGP04.phx.gbl...
> 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" wrote in message
> 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
>>

>
>



Reply With Quote
  #6  
Old 04-07-2007, 11:34 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Controlling Spell Checker

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

Reply With Quote
  #7  
Old 04-17-2007, 04:32 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Controlling Spell Checker

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" wrote in message
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
>



Reply With Quote
  #8  
Old 10-12-2009, 05:08 PM
Database Newbie
 
Join Date: Oct 2009
Posts: 1
Geoff.Brady is on a distinguished road
Default Re: Controlling Spell Checker

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
Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 07:01 PM.