Click here to Skip to main content
Licence CPOL
First Posted 30 May 2009
Views 7,303
Downloads 105
Bookmarked 17 times

Spell checking in Microsoft Access 2003 applications

By | 30 May 2009 | Article
An easy way to do spell checking in Microsoft Access 2003 applications.

Introduction

Here is an easy way to do spell checking in an MS Access 2003 application.

Background

For various automation type applications, Microsoft Access is widely used for database and user interface design. In this article, I would like to show you how to do spell checking in Microsoft Access 2003 applications.

Using the code

This is a very simple way. I just use the acCmdSpelling command. The command performs spell checking on the currently focused text control. A code example is given below:

Private Sub btnSpellChecker_Click()
On Error GoTo Err:
    
    With Me.txtMessage
    .SetFocus
        If Len(.Text & vbNullString) > 0 Then
            .SelStart = 0
            .SelLength = Len(.Text)
            DoCmd.RunCommand acCmdSpelling
        End If
    End With
    
Exit Sub

Err:
    'Err.Raise Err.Number, Err.Source, Err.Description
     MsgBox Err.Description
End Sub

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Md. Marufuzzaman

Architect

Bangladesh Bangladesh

Member

Follow on Twitter Follow on Twitter


Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 5 Pinmembervbianx23:30 15 Apr '12  
GeneralRe: My vote of 5 PinmentorMd. Marufuzzaman6:42 16 Apr '12  
GeneralMy vote of 3 Pinmemberi0013:42 11 Oct '11  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120517.1 | Last Updated 30 May 2009
Article Copyright 2009 by Md. Marufuzzaman
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid