473,320 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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
Apr 7 '07 #1
6 10790
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

Apr 7 '07 #2
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

Apr 7 '07 #3
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" <no****@nospam.netwrote in message
news:_z*****************@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

Apr 7 '07 #4
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]" <a@m.comwrote in message
news:ec**************@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" <no****@nospam.netwrote in message
news:_z*****************@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


Apr 8 '07 #5
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

Apr 8 '07 #6
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" <u28780@uwewrote 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

Apr 17 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Leo P. | last post by:
I am trying to write a spelling checker. Specifically the part that suggests words. From what I've read online, it seems like the preferred way to do this, is to find the double metaphone...
84
by: Andy Glew | last post by:
I am in search of any rigourous, scientific, academic or industrial studies comparing naming conventions in C++ or similar languages such as Ada: Specifically, are names formed with...
2
by: WM Chung | last post by:
Hi all, I need to include spell check utilities into my dotnet application. Is this a ready-to-use facility in dotnet ? Or do I need to use third party tool ? I use Visual Studio 2002. Thanks...
7
by: Hank Reed | last post by:
I am trying to use the spell checker on an unbound control in Access 2000. I run the checker in the AfterUpdate event of the control. After the spell checker is done, I get the following message:...
8
by: Joe | last post by:
Hello All: Does anyone know of a spell checker that works with .NET? Any options will be welcome. TIA, -- Joe
4
by: sweetguy1only | last post by:
Hi all, I am a MS Access developer using VB 6 (yes, I know it is a bit old). The problem I am having is, I have a software that allows my customers to put in the information of their clients....
22
by: SmokeWilliams | last post by:
Hi, I am working on a Spell checker for my richtext editor. I cannot use any open source, and must develop everything myself. I need a RegExp pattern to split text into a word array. I have...
9
by: ARC | last post by:
Hello all, I developed a tool a year or so ago for adding your own spell-checker to an access application. This is mainly for those using the runtime, as you can't distribute the spell-checker...
3
by: Mike | last post by:
I have an app running at a client where, when the spell checker is supposed to run, it reports "Can't start spell checker because it is not installed". I have never had this before - it works...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.