Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 5th, 2004, 03:32 PM
Authorized User
 
Join Date: Sep 2004
Posts: 68
Thanks: 1
Thanked 0 Times in 0 Posts
Default Spell checker

Hey guys,

I need to add a spell checker to my content manager.

What do you recommend?

Thanks for your help!

 
Old October 11th, 2004, 09:22 AM
Authorized User
 
Join Date: Jul 2004
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I saw someone once use Microsoft Words spell check some how. He added a couple DLL's and the custom.dic to the project. Might search for that. Wish I could be more help.

 
Old October 22nd, 2004, 10:49 PM
Registered User
 
Join Date: Oct 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Create a button on your form "btnSpell" ... (Titled, "Spell"); specify [event procedure] for event 'On Click'; enter the following VBA code...


Private Sub btnSpell_Click()

    On Error GoTo Err_btnSpell_Click

    Dim ctlSpell As Control

    Set ctlSpell = Screen.PreviousControl
    If TypeOf ctlSpell Is TextBox Then
        If IsNull(Len(ctlSpell)) Or Len(ctlSpell) = 0 Then
            MsgBox "There is nothing to spell check."
            ctlSpell.SetFocus
            Exit Sub
        End If
        With ctlSpell
        .SetFocus
        .SelStart = 0
        .SelLength = Len(ctlSpell)
        End With
        DoCmd.RunCommand acCmdSpelling
    Else
        MsgBox "Spell check is not available for this item."
    End If

    ctlSpell.SetFocus

Exit_btnSpell_Click:
    Exit Sub

Err_btnSpell_Click:
    MsgBox "Error " & Err.Number & ":" & Chr$(13) & Chr$(10) & Err.Description
    Resume Exit_btnSpell_Click

End Sub

Note... to the best of my knowledge... you cannot spell check all fields on a form at once... the above works when a user has his cursor in any one field on a form... it will only spell check that one field...

 
Old October 22nd, 2004, 10:53 PM
Registered User
 
Join Date: Oct 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry... misread your question... never mind!






Similar Threads
Thread Thread Starter Forum Replies Last Post
spell checker Star007 Java GUI 0 October 26th, 2004 03:48 PM
Need help with Spell checker in GUI Star007 Java GUI 0 October 26th, 2004 03:46 PM
Spell Checker srotondo Classic ASP Basics 3 October 6th, 2004 08:07 PM
Spell Checker zaeem Classic ASP Basics 3 November 10th, 2003 12:01 PM
Spell Checker Lucy Classic ASP Professional 1 November 3rd, 2003 03:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.