Hello
I hope someone can help... I have attached my database and pasted the code below... for some reason I keep getting the following error message:
'Run time error '2046' - The command or action 'spelling' isn't available now'
Here is the code:
Private Sub CmdSpellChecker_Click()
ControlEnabler True (These modules are arrays which set the Enabled /
ControlLocker False (Locked properties of the controls)
With Me.txtNotes
Me.txtNotes.SetFocus
If Len(.Value) > 0 Then
DoCmd.SetWarnings False
.SelStart = 1
.SelLength = Len(.Value)
DoCmd.RunCommand acCmdSpelling
.SelLength = 0
DoCmd.SetWarnings True
End If
End With
ControlEnabler False
ControlEnabler True
I hope someone can help... I have attached my database and pasted the code below... for some reason I keep getting the following error message:
'Run time error '2046' - The command or action 'spelling' isn't available now'
Here is the code:
Private Sub CmdSpellChecker_Click()
ControlEnabler True (These modules are arrays which set the Enabled /
ControlLocker False (Locked properties of the controls)
With Me.txtNotes
Me.txtNotes.SetFocus
If Len(.Value) > 0 Then
DoCmd.SetWarnings False
.SelStart = 1
.SelLength = Len(.Value)
DoCmd.RunCommand acCmdSpelling
.SelLength = 0
DoCmd.SetWarnings True
End If
End With
ControlEnabler False
ControlEnabler True