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 10831
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 SpellCheckLimit ed_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.RunComman d 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.c om http://www.accessmonster.com/Uwe/For...ccess/200704/1
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.c om http://www.accessmonster.com/Uwe/For...ccess/200704/1
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.ActiveFo rm
DoCmd.SetWarnin gs 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.RunComman d acCmdSpelling
End If
End If
Next
DoCmd.SetWarnin gs 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******** *********@newss vr21.news.prodi gy.net...
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
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******** ******@TK2MSFTN GP04.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.ActiveFo rm
DoCmd.SetWarnin gs 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.RunComman d acCmdSpelling
End If
End If
Next
DoCmd.SetWarnin gs 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******** *********@newss vr21.news.prodi gy.net...
>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?
Alternativel y, 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
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.c om http://www.accessmonster.com/Uwe/For...ccess/200704/1
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.
"missinglin q via AccessMonster.c om" <u28780@uwewrot e in message
news:706090214e 250@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.c om http://www.accessmonster.com/Uwe/For...ccess/200704/1 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 equivalent
of a mispelled word, then to compute the mispelled word's distance
from other words which have the same, or a similar metaphone
equivalent.
I've run into some problems with this approach. For example,
"accommodation" has a metaphone code of...
|
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
underscores more or less readable
than names formed with MixedCase
StudlyCaps camelCase?
|
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 in advance.
W.M. Chung
|
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:
The Macro or Function set to the BeforeUpdate or ValidationRule
Property for this field is preventing MS Access from saving the data
in the field.
I have no validation code or mask and no code in the Before
Update event.
|
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
| |
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. A client of one
of my customer has a last name of "Cotten". Whenever they put in the
last name as "Cotten", the spell checker automatically converts it to
"Cotton". The thing is, I am sending them the run-time version of
Access. Many of my...
|
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 been doing it by
splitting by spaces or <ptags. I run into a probelm with the
richtext part of my editor. When I change the font, it wraps the text
in a tag. the tag has something like <font face="arial>some words</
font This splits the text at...
|
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 ability. After many complaints from my runtime
customers, I decided to develop my own, which was a good challenge.
I just wanted to give something back to the board / fellow access developers
and offer the source for free. This board has been,...
|
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 fine at other user sites and
on my development setup.
The app runs on MS Access 2002 runtime.
Is there maybe an incompatibility with Office 2007?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |