Sign Up |  Live StatsLive Stats    Articles 35,345| Comments 159,790| Members 17,820, Newest waheguruhelpme| Online 217
Home Contact
 (Forgotten?): 
    A portrait by Bhagat Singh of Sikhiart.com

   
                                                                     Your Banner Here!    

Sikh Philosophy Network » Sikh Philosophy Network » Current Affairs » Information Technology » How Do I Invoke Spell Check from Within Access VBA

How Do I Invoke Spell Check from Within Access VBA

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 400 USD, Received: 35 USD (9%)
Please Donate...
Related Topics...
Thread Thread Starter Forum Replies Last Post
Spell Checking Chuck216 Information Technology 5 28-Jul-2006 08:42 AM
Spell Checker Bob Barnes Information Technology 3 28-Jul-2006 08:32 AM
how do I change the default state of a check box in Access 2000? ScrappingMomma Information Technology 1 28-Jul-2006 08:03 AM
how do i set up check boxes to print word documents in access Rfranzi Information Technology 0 11-Nov-2005 20:09 PM


Tags
invoke, spell, check, within, access, vba
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:39 AM
EarlCPhillips's Avatar EarlCPhillips
Guest
 
Posts: n/a
   
   
How Do I Invoke Spell Check from Within Access VBA

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
User wants to invoke spell check for fields within a table since data entry
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/13686-how-do-i-invoke-spell-check.html
spelling is variable. How do I do this from within VBA?
Earl Phillips
Volunteer Programmer
Harvesters Community Food Bank
--
Trying To Feed The Hungry

*








 
Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:39 AM
Steve Schapel's Avatar Steve Schapel
Guest
 
Posts: n/a
   
   
Re: How Do I Invoke Spell Check from Within Access VBA

Earl,

DoCmd.RunCommand acCmdSpelling

Note that this invokes the Office spell-ckecker, and relies on an Office
installation of the same version as the Access installation. Also note
that this code is often best run from a Command Button... if you use the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13686
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13686
After Update event of a control or form or whatever, the spelling
checker runs even if there are no errors detected, which can be annoying.

--
Steve Schapel, Microsoft Access MVP

EarlCPhillips wrote:
> User wants to invoke spell check for fields within a table since data entry
> spelling is variable. How do I do this from within VBA?
> Earl Phillips
> Volunteer Programmer
> Harvesters Community Food Bank

Reply With Quote
  #3 (permalink)  
Old 04-Nov-2008, 18:02 PM
LauryBurr's Avatar LauryBurr LauryBurr is offline
 
Enrolled: Nov 4th, 2008
Posts: 1
LauryBurr is an unknown quantity at this point
   
Adherent: Christianity
Liked 0 Times in 0 Posts
    Nationality: United Kingdom
Re: How Do I Invoke Spell Check from Within Access VBA

  Donate Today!  
There's another way to avoid the spell-checker telling you every time the spell check revealed no error - notte the extra code before & after calling the spellchecker.

DoCmd.SetWarnings False
DoCmd.RunCommand acCmdSpelling
DoCmd.SetWarnings True

Now, some of you might panic at this point. but don't worry - if there IS an error it'll tell you, but if not it just lets you get on with life!

So this is the best code to use as - for example - an "on lost focus" event. n my experience, if you give people the option to spellcheck (e.g. with a button) not everyone will use it - including those whose spelling is, let's say, less than perfect.

But note that the spellcheck command (whether as used here or with a separate button) will spellcheck the whole form, not just the current text box. Now, if you need to do that (address fields probably have so many words not in your dictionary that the spellcheck would be frustrating if it picked up every line of the address as an "error" - it'd certainly slow down data entry) then try the following, more comprehensive coding:

Private Sub YOURFIELDNAME_Exit(Cancel As Integer)
Dim strSpell
strSpell = YOURFIELDNAME
If IsNull(Len(strSpell)) Or Len(strSpell) = 0 Then
Exit Sub
End If
With YOURFIELDNAME
.SetFocus
.SelStart = 0
.SelLength = Len(strSpell)
End With
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdSpelling
DoCmd.SetWarnings True
End Sub

For this I owe thanks to “icezebra” at this url: http://www.access-programmers.co.uk/forums/showthread.php?t=130780. He's actually provided the answer that I was looking for when I found this site!

Last edited by LauryBurr; 04-Nov-2008 at 18:13 PM. Reason: Found more information
Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

LinkBacks (?)
LinkBack to this Thread: http://www.sikhphilosophy.net/information-technology/13686-how-do-i-invoke-spell-check.html
Posted By For Type Date
How to force Spellcheck? This thread Refback 05-Apr-2011 01:40 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Gurbani Jukebox
Listen to Gurbani while surfing SPN!
» Active Discussions
sikhism Who is "Mohan"?
Today 08:46 AM
22 Replies, 335 Views
sikhism How important is Matha...
Today 08:12 AM
59 Replies, 1,038 Views
sikhism need urgent advice.......
Today 06:46 AM
6 Replies, 81 Views
sikhism ਨਾਮਾ
Today 06:37 AM
2 Replies, 53 Views
sikhism Sikh Diamonds Video...
Today 04:23 AM
6 Replies, 116 Views
sikhism Are Creator and Creation...
Today 01:30 AM
44 Replies, 2,837 Views
sikhism Herman Hesse,...
Today 00:54 AM
13 Replies, 229 Views
sikhism On a Scale of Most...
Yesterday 21:42 PM
30 Replies, 1,277 Views
sikhism I became victim by...
Yesterday 19:50 PM
0 Replies, 44 Views
sikhism Sikh Books downloads
Yesterday 15:39 PM
2 Replies, 66 Views
sikhism Salok Sheikh Farid ji...
Yesterday 09:35 AM
0 Replies, 47 Views
sikhism In Punjab, three farmers...
Yesterday 05:36 AM
0 Replies, 49 Views
sikhism Supernatural Sikhs, what...
Yesterday 03:45 AM
19 Replies, 414 Views
sikhism Sukhmani Sahib Astpadi...
26-May-2012 22:57 PM
0 Replies, 51 Views
Do You Think You Are...
26-May-2012 09:59 AM
94 Replies, 8,258 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.2

All times are GMT +6.5. The time now is 09:41 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.32986 seconds with 30 queries