M
mattc66 via AccessMonster.com
On the suggestion of another thread I placed the word LOCK on each of my
controls TAG.
On the Form event Current I placed the following code. I get run-time error
438 Object doesn't support this property.
What I am trying to do is Lock all items on my form if the "EDI_Complete"
Check box is TRUE.
Can anyone offer me a suggested solution?
Thanks
Matt
Private Sub Form_Current()
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.Tag = "LOCK" Then
If Me.EDI_Complete = True Then
ctl.Locked = True
ctl.ForeColor = vbBlue
Else
ctl.Locked = False
ctl.ForeColor = vbGreen
End If
End If
Next ctl
End Sub
controls TAG.
On the Form event Current I placed the following code. I get run-time error
438 Object doesn't support this property.
What I am trying to do is Lock all items on my form if the "EDI_Complete"
Check box is TRUE.
Can anyone offer me a suggested solution?
Thanks
Matt
Private Sub Form_Current()
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.Tag = "LOCK" Then
If Me.EDI_Complete = True Then
ctl.Locked = True
ctl.ForeColor = vbBlue
Else
ctl.Locked = False
ctl.ForeColor = vbGreen
End If
End If
Next ctl
End Sub