Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2005

    Unanswered: acCmdSpelling Run Time Error 2046

    I have used this code before to spell check a large Narrative Memo field as the user exits the field after entering their report. However for some reason with a new application, I am getting a

    Run-time error '2046':
    The command or action 'Spelling' isn't available now.

    Below is the code, it has worked with no issues before. What could I be missing?

    Private Sub Narrative_LostFocus()
    With Me!Narrative
    If Len(.Value) > 0 Then
    DoCmd.SetWarnings False
    .SelStart = 1
    .SelLength = Len(.Value)
    DoCmd****nCommand acCmdSpelling (This should be "*RunCommand acCmdSpelling", but for some reason it adds **** on this web page)
    .SelLength = 0
    DoCmd.SetWarnings True
    End If
    End With
    End Sub
    Last edited by Bob.Carter.17; 07-06-10 at 19:58. Reason: Paste didn't work right

  2. #2
    Join Date
    Nov 2004
    out on a limb
    Provided Answers: 59
    probably a reference has changed, or it may be an Access versionign thing, soemthign that was allowed in other versions but not the current one. it coudl be a dictionary is missign or corrupt
    I'd rather be riding on the Tiger 800 or the Norton

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts