473,469 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Spelling 101

Hi,

I am fully aware of the F7 spell check in access, and I am also aware
that this can be automated with the statement,

SendKeys "{F7}"

However when you do this you are presented with a message box that
tells you that the spell check is complete, even if the spell check has

made no corrections.

My question is: Is there any way of doing a spell check invisibly? I
realise that this might involve using the windows API.

Thanks In Advance

Nick

Nov 26 '06 #1
8 1743
Nick 'The Database Guy' wrote:
Hi,

I am fully aware of the F7 spell check in access, and I am also aware
that this can be automated with the statement,

SendKeys "{F7}"

However when you do this you are presented with a message box that
tells you that the spell check is complete, even if the spell check has

made no corrections.

My question is: Is there any way of doing a spell check invisibly? I
realise that this might involve using the windows API.

Thanks In Advance

Nick
Why would you want to spell check invisibly? What would be the purpose?
What if you wanted to keep a word the spell check can't find? What if
there were several options to select from if you did want to change it?
Nov 26 '06 #2

salad wrote:
Nick 'The Database Guy' wrote:
Hi,

I am fully aware of the F7 spell check in access, and I am also aware
that this can be automated with the statement,

SendKeys "{F7}"

However when you do this you are presented with a message box that
tells you that the spell check is complete, even if the spell check has

made no corrections.

My question is: Is there any way of doing a spell check invisibly? I
realise that this might involve using the windows API.

Thanks In Advance

Nick
Why would you want to spell check invisibly? What would be the purpose?
What if you wanted to keep a word the spell check can't find? What if
there were several options to select from if you did want to change it?
Perhaps he doesn't want a 'spell check complete' message if there are
in fact no errors.

Bruce

Nov 27 '06 #3
de***************@gmail.com wrote:
salad wrote:
>>Nick 'The Database Guy' wrote:

>>>Hi,

I am fully aware of the F7 spell check in access, and I am also aware
that this can be automated with the statement,

SendKeys "{F7}"

However when you do this you are presented with a message box that
tells you that the spell check is complete, even if the spell check has

made no corrections.

My question is: Is there any way of doing a spell check invisibly? I
realise that this might involve using the windows API.

Thanks In Advance

Nick

Why would you want to spell check invisibly? What would be the purpose?
What if you wanted to keep a word the spell check can't find? What if
there were several options to select from if you did want to change it?


Perhaps he doesn't want a 'spell check complete' message if there are
in fact no errors.

Bruce
That may be true. He could send
SendKeys "{F7}"
SendKeys "{Enter}"
But what if there were a word that was spelled wrong. Then it would
select it and he'd still get the message.

I would prefer knowing the spell check was complete if I initiated it.
Nov 29 '06 #4
"Nick 'The Database Guy'" <ni*****@btinternet.comwrote in
news:11**********************@l12g2000cwl.googlegr oups.com:
I am fully aware of the F7 spell check in access, and I am also aware
that this can be automated with the statement,

SendKeys "{F7}"
Some developers consider SendKeys to be dangerous in that the send might
end up in some other currently running application or some other Access
window. I've never seen this happen and doubt that it's more than a bourbon
myth but I avoid SendKeys because IMO SendKeys is an ugly hack created for
the rescue of the lazy, the incompetent and the indifferent.

You might try

With DoCmd
.SetWarnings False
.RunCommand acCmdSpelling
End With

The help file says:
"If you turn the display of system messages off in Visual Basic, you must
turn it back on, or it will remain off, even if the user presses CTRL+BREAK
or Visual Basic encounters a breakpoint."

If the help file is correct (a 50-50 possibility) then somewhere, sometime
one should do:

DoCmd.SetWarnings True

I wouldn't know as I never mess with SetWarnings. If I had a gnarly text
box or memo where spelling is a problem I would be inclined to have a
nearby label with the caption:
"<F7to check spelling."
When one respects users and places the responsibility for proper data entry
on their shoulders one is usually rewarded with good data entry.

A good Access application is marked by its simplicity. Magic buttons are
great for laughs and termination justification.
Nov 29 '06 #5
"Lyle Fairfield" <ly***********@aim.comwrote
If the help file is correct (a 50-50 possibility) then
somewhere, sometime ...
Ever the optimist, aren't you, Lyle? :-)
Nov 29 '06 #6
I feel that Lyle's comment: "When one respects users and places the
responsibility for proper data entry on their shoulders one is usually
rewarded with good data entry." was equally optimistic. As this
request for information came from a user request. Also the database
that I was called in to sort out had a great number of spelling
mistakes.

Even users have deadlines I guess.

Nick

Larry Linson wrote:
"Lyle Fairfield" <ly***********@aim.comwrote
If the help file is correct (a 50-50 possibility) then
somewhere, sometime ...

Ever the optimist, aren't you, Lyle? :-)
Dec 17 '06 #7
As a matter of interest I used the following code:

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

This was posted by Arvin Meyer and my thanks go out to him and
everybody else that gave me feedback.

Nick
Nick 'The Database Guy' wrote:
I feel that Lyle's comment: "When one respects users and places the
responsibility for proper data entry on their shoulders one is usually
rewarded with good data entry." was equally optimistic. As this
request for information came from a user request. Also the database
that I was called in to sort out had a great number of spelling
mistakes.

Even users have deadlines I guess.

Nick

Larry Linson wrote:
"Lyle Fairfield" <ly***********@aim.comwrote
If the help file is correct (a 50-50 possibility) then
somewhere, sometime ...
Ever the optimist, aren't you, Lyle? :-)
Dec 17 '06 #8
Nick 'The Database Guy' wrote:
I feel that Lyle's comment: "When one respects users and places the
responsibility for proper data entry on their shoulders one is usually
rewarded with good data entry." was equally optimistic. As this
request for information came from a user request. Also the database
that I was called in to sort out had a great number of spelling
mistakes.

Even users have deadlines I guess.
!

Dec 17 '06 #9

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

Similar topics

16
by: English Teacher | last post by:
Which would be a more useful language to learn, Smalltalk or Pearl? Learning curves any different? Thanks!
5
by: Joel Rodrigues | last post by:
Hi, I seem to recall once coming across & using functionality in PostgreSQL that allowed for some flexibility in the spelling of a query term. For example, if one meant to look for 'Honda', but...
10
by: gnat | last post by:
Hello c.l.c, Are there any spell checkers out that will go through C code and tell me if i have misspelled anything that is in between quotes (ie. data that may be shown to the end user)? --...
6
by: Jesse Engle | last post by:
i'm working on two client and server programs that send and recieve files using sockets. i saw a c++ example using csockets, and thought i could use the basic idea of what the code was doing to...
53
by: KraftDiner | last post by:
I've spent hours trying to find a bug that was a simple spelling mistake. in an init method I declare a variable self.someLongName later in a different method of the class I use...
3
by: Peter | last post by:
Hello! I'm trying to implement a method, that checks spelling of a text and suggests corrections. The C# program looks like: ... Word.Application spellApp = new Word.Application();...
4
by: lyle | last post by:
Sometimes before clicking "Post" I copy my message, open Word and paste. Word is excellent, and can suggest synonyms and translations. But it takes a while for Word to open. Recently, I've been...
1
by: zafar | last post by:
Hi, I want to make a personal digital library, For that I need make a search engine, User can search by giving the key words, but the spelling of given key word may be incorrect, so It is needed...
2
by: knkk | last post by:
Hi, I came across this perl script someone wrote for spelling suggestions when someone types a wrong spelling. Can someone please convert it to PHP? It will help a lot of people. I am attaching...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
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...
0
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...
0
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...
0
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 ...

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.