473,398 Members | 2,427 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,398 software developers and data experts.

access spell checker tool for runtime apps

ARC
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, and is, a great source
of information and solutions, so I'm just hoping to add to it. I spent some
time on the source this week and worked in support for rich text fields (new
field option in access 2007). I also have access 97 and access 2000 versions
available for download.

If you're in need of a spell-checker solution for your runtime app, please
fee free to download:
http://www.pcesoft.com/Access-Spell-...urce-Code.html

Hope this can help someone. Take care,

Andy

Sep 4 '08 #1
9 6240
"ARC" <PC*****@PCESoft.invalidwrote:
>If you're in need of a spell-checker solution for your runtime app, please
fee free to download:
http://www.pcesoft.com/Access-Spell-...urce-Code.html
Looks decent at first glance.

1) Suggestion. Add error handling to the pupDictionary and pupDictionaryEdit forms
VBA code if the developer opens them directly instead of getting the End/Debug
screen.

2) What dictionary did you get your words from? Are there any copyright issues? If
an open source dictionary then are there are supplemental EULAs to be displayed?

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
Sep 5 '08 #2
"ARC" <PC*****@PCESoft.invalidwrote:
>If you're in need of a spell-checker solution for your runtime app, please
fee free to download:
BTW I like how easy it is to add to an application. Just the following two lines is
nice and simple.

Me!Bodytext.SetFocus 'Replace w/ actual field name being checked.
DoCmd.OpenForm "pupDictionary" 'OnLoad even of pupDictionary will start the spell
check on field w/focus

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
Sep 5 '08 #3
I haven't tried it yet, but thanks for sharing!

Chris
Microsoft MVP
ARC wrote:
>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, and is, a great source
of information and solutions, so I'm just hoping to add to it. I spent some
time on the source this week and worked in support for rich text fields (new
field option in access 2007). I also have access 97 and access 2000 versions
available for download.

If you're in need of a spell-checker solution for your runtime app, please
fee free to download:
http://www.pcesoft.com/Access-Spell-...urce-Code.html
--
Message posted via http://www.accessmonster.com

Sep 5 '08 #4
ARC
Thanks, Tony. I forgot to change that. If you open the pupDictionaryEdit
form without pupDictionary opened, it does error out. Would be nice for
developers to test the form without the other opened.

I believe I searched google and found a generic list of words a few years
back for both US and UK variations, then dumped them to tables. There were
no copyrights on the page that I could see, and I do remember looking for
that. I'll have to do a search again when I get a chance, to see if I can
pinpoint the site where I originally found the list. Again, it's been a few
years since I imported the word list into tables.

Thanks for the feedback, Tony.

Andy
"Tony Toews [MVP]" <tt****@telusplanet.netwrote in message
news:lc********************************@4ax.com...
"ARC" <PC*****@PCESoft.invalidwrote:
>>If you're in need of a spell-checker solution for your runtime app, please
fee free to download:
http://www.pcesoft.com/Access-Spell-...urce-Code.html

Looks decent at first glance.

1) Suggestion. Add error handling to the pupDictionary and
pupDictionaryEdit forms
VBA code if the developer opens them directly instead of getting the
End/Debug
screen.

2) What dictionary did you get your words from? Are there any copyright
issues? If
an open source dictionary then are there are supplemental EULAs to be
displayed?

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
Sep 5 '08 #5
"ARC" <PC*****@PCESoft.invalidwrote:

On playing around with the utility I have a few more suggestions.

1) Suggestion about the SuggMatch table. I see that is a temporary table in the FE.
Each time you hit a word you recreate that table to fill the list box. I'd suggest
using a temporary tables MDB to avoid significant bloating of the FE MDB. Just
running the sample code in your MDB bloated the MDB by 1.5 Mb.

See the TempTables.MDB page at my website which illustrates how to use a temporary
MDB in your app. http://www.granite.ab.ca/access/temptables.htm

2) Is it possible to leave that table with all the suggested words from a to z? So
as to avoid the slight delay when displaying the suggestions? Sure it will take more
room but what the heck.

3) Now if you wanted to get real fancy, and I wouldn't worry about it for right now,
is to fetch the top, left, width and height positions of the text control. then
attempt to position the spell check form so it doesn't overlap the text control.
I'd further suggest to try to display it lower if possible and then higher if
possible. If neither are possible then as low as possible so that your form overlaps
the control but doesn't go below the bottom of the Access window.

I quite like the look and feel of your utility. I think you've done a nice,
professional job with it.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
Sep 5 '08 #6
ARC
Hi Tony,

Those are great suggestions!

As an aside, I use temp tables in that way many times, and I do have a bloat
problem with my main application, Instant Quote Pro. One thing I tried to
do, but I'm not even sure this helps, is to offload temp tables such as the
one you're referring to, to a local workspace.accdb file. But, I'm not
convinced the "bloat" hit ends up in the temp database, as I think it still
winds up the in the program file. I'll have a look at your link to see if
this helps with the bloat in my main app.

For the suggestions table, one could comment out the openquery line that
delete's all the recs in the suggmatch table.

I also like your idea of positioning the form, as the first thing I do when
spellchecking is to move it out of my way.

I gave a demo of this to my brother, and his favorite part was that it
scrolled and highlighted the words as it checked them, which he hadn't
really seen before. I had a problem where, if it hit a bad word, it would
stop the scrolling when you resumed the check, but a simple DoEvents took
care of that. He also suggested I ignore weblinks, which I added this past
week.

I'm sure there could be speed improvements. In the function that builds
suggestions, I ended up finding the need to add another field to the
dictionary tables for word length. So if you add words manually to the
table, you'll need to add the length as well. As for suggestions, I'll only
look at words that are within a few characters of the length of the
misspelled word. Your suggestion of not wiping out the SuggMatch table each
time could improve speed.

I found on a vista machine, that the 97/2000/2007 versions were all very
fast. On an older xp machine, the speed on the access 97 version won out
(older software always tends to run faster on older hardware. good old
planned obsolescence!)

Thanks again,

Andy

P.S. I did another search last night to see if I can find the same site
where I found the files of words, and couldn't find it within the first 2
page results.
"Tony Toews [MVP]" <tt****@telusplanet.netwrote in message
news:2p********************************@4ax.com...
"ARC" <PC*****@PCESoft.invalidwrote:

On playing around with the utility I have a few more suggestions.

1) Suggestion about the SuggMatch table. I see that is a temporary table
in the FE.
Each time you hit a word you recreate that table to fill the list box.
I'd suggest
using a temporary tables MDB to avoid significant bloating of the FE MDB.
Just
running the sample code in your MDB bloated the MDB by 1.5 Mb.

See the TempTables.MDB page at my website which illustrates how to use a
temporary
MDB in your app. http://www.granite.ab.ca/access/temptables.htm

2) Is it possible to leave that table with all the suggested words from a
to z? So
as to avoid the slight delay when displaying the suggestions? Sure it
will take more
room but what the heck.

3) Now if you wanted to get real fancy, and I wouldn't worry about it for
right now,
is to fetch the top, left, width and height positions of the text control.
then
attempt to position the spell check form so it doesn't overlap the text
control.
I'd further suggest to try to display it lower if possible and then higher
if
possible. If neither are possible then as low as possible so that your
form overlaps
the control but doesn't go below the bottom of the Access window.

I quite like the look and feel of your utility. I think you've done a
nice,
professional job with it.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
Sep 5 '08 #7
ARC
You're welcome, Chris! Hope it's a useful addition.

"Chris O'C via AccessMonster.com" <u29189@uwewrote in message
news:89b822c878048@uwe...
>I haven't tried it yet, but thanks for sharing!

Chris
Microsoft MVP
ARC wrote:
>>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, and is, a great source
of information and solutions, so I'm just hoping to add to it. I spent
some
time on the source this week and worked in support for rich text fields
(new
field option in access 2007). I also have access 97 and access 2000
versions
available for download.

If you're in need of a spell-checker solution for your runtime app, please
fee free to download:
http://www.pcesoft.com/Access-Spell-...urce-Code.html

--
Message posted via http://www.accessmonster.com
Sep 5 '08 #8
ARC
Oh, wait. You couldn't just comment out the part that wipes out SuggMatch
each time. You would also have to clear the matchnum field, otherwise, you
would get suggestions of past misspelled words.

Andy
"Tony Toews [MVP]" <tt****@telusplanet.netwrote in message
news:2p********************************@4ax.com...
"ARC" <PC*****@PCESoft.invalidwrote:

On playing around with the utility I have a few more suggestions.

1) Suggestion about the SuggMatch table. I see that is a temporary table
in the FE.
Each time you hit a word you recreate that table to fill the list box.
I'd suggest
using a temporary tables MDB to avoid significant bloating of the FE MDB.
Just
running the sample code in your MDB bloated the MDB by 1.5 Mb.

See the TempTables.MDB page at my website which illustrates how to use a
temporary
MDB in your app. http://www.granite.ab.ca/access/temptables.htm

2) Is it possible to leave that table with all the suggested words from a
to z? So
as to avoid the slight delay when displaying the suggestions? Sure it
will take more
room but what the heck.

3) Now if you wanted to get real fancy, and I wouldn't worry about it for
right now,
is to fetch the top, left, width and height positions of the text control.
then
attempt to position the spell check form so it doesn't overlap the text
control.
I'd further suggest to try to display it lower if possible and then higher
if
possible. If neither are possible then as low as possible so that your
form overlaps
the control but doesn't go below the bottom of the Access window.

I quite like the look and feel of your utility. I think you've done a
nice,
professional job with it.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
Sep 5 '08 #9
Not that this is easy, but something I've always wanted to see in a spell
checker is an awareness of syntax. For example, if I add a word to the
dictionary, I'd love it if it asked me what part of speech it is, and then
offered me the opportunity to add the inflected forms as well.

So if I added the noun dog to the dictionary, I'd like to also be able to
add dogs (subjective plural), dog's (possessive singular), dogs'
(possessive plural). It always annoys me a little bit when I have to add a
word to a dictionary multiple times because the various versions are all
slightly different.

- Carlos
Sep 11 '08 #10

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

Similar topics

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...
2
by: Dalan | last post by:
I thought that I would add an enhanced feature to an Access 97 runtime db by including a procedure to allow the use of MS' spell checker via a command button, so that users who have an Office app...
2
by: eddie wang | last post by:
Hello, I inherited an Access application from a previous coworker. It seems the Spell Check is never enabled unless I open the application by holding down the shift key and double clicking the...
8
by: Steve Jorgensen | last post by:
There's this app I wrote a long time ago for a client who uses it to administer the database content that drives their Web site. Last time I was in there' I notices a lot of embarassing typos in...
5
by: Raterus | last post by:
I'm just throwing this error out for my sanity, I've seen posts about this, but never solutions. I'm using VS.NET 2003, Framework 1.1, and I'm getting a random error about every 1 out of 10 times...
43
by: James Stewart | last post by:
If I were to begin creating a fairly simple database, i.e. a datasheet that would include two related tables to create an encyclopedic style database and then create some fairly indepth forms to...
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....
6
by: Don | last post by:
I am looking for a C/C++ code spell checker, a tool that checks for spelling errors in C++ source code. Linux/Unix platforms. Prefer command line tool. Open source preferred, but will consider...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
agi2029
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 project—planning, coding, testing,...
0
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...

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.