Hi folks,
I have error 438 Object doesn't support property or method in a Form On Current event.
Error trapping is turned on, reason being I converted the form to accde and it stopped working!
The code is...
Private Sub Form_Current()
On Error Resume Next
Dim ctl As Control
'Me.CC_Spare_3.Enabled = False
For Each ctl In Me.Controls
'If CC Complete is NOT "Completed" and it is Checked, Lock all other
'Controls. If it is not checked Unlock them
If ctl.Name <> "Check411" Then
ctl.Locked = Me![Check411] 'Evaluates to True/False
End If
Next
End Sub
The highlighted text when in debugger is
ctl.Locked = Me![Check411]
Any ideas?
Thanks in adavance
I have error 438 Object doesn't support property or method in a Form On Current event.
Error trapping is turned on, reason being I converted the form to accde and it stopped working!
The code is...
Private Sub Form_Current()
On Error Resume Next
Dim ctl As Control
'Me.CC_Spare_3.Enabled = False
For Each ctl In Me.Controls
'If CC Complete is NOT "Completed" and it is Checked, Lock all other
'Controls. If it is not checked Unlock them
If ctl.Name <> "Check411" Then
ctl.Locked = Me![Check411] 'Evaluates to True/False
End If
Next
End Sub
The highlighted text when in debugger is
ctl.Locked = Me![Check411]
Any ideas?
Thanks in adavance