G
Guest
Hello,
I have placed a spell check button in my form using the following code:
Private Sub Command109_Click()
Dim ctl As Access.Control
For Each ctl In Controls
On Error GoTo Errorhandler
With ctl
If .ControlType = acTextBox Then
..SelStart = 0
..SelLength = Len(.Text)
End If
End With
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdSpelling
DoCmd.SetWarnings True
DoEvents
Next ctl
Errorhandler:
Exit Sub
End Sub
When I click my button, I am getting a message that says something about the
field has a required setting equal to true and that is can not contain a null
value.
How can I resolve this issue to allow for a spell check to take place?
I have placed a spell check button in my form using the following code:
Private Sub Command109_Click()
Dim ctl As Access.Control
For Each ctl In Controls
On Error GoTo Errorhandler
With ctl
If .ControlType = acTextBox Then
..SelStart = 0
..SelLength = Len(.Text)
End If
End With
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdSpelling
DoCmd.SetWarnings True
DoEvents
Next ctl
Errorhandler:
Exit Sub
End Sub
When I click my button, I am getting a message that says something about the
field has a required setting equal to true and that is can not contain a null
value.
How can I resolve this issue to allow for a spell check to take place?