G
Guest
Someone suggested this code to lock all fields when a form loads except
certain fields. I was trying to exclude an option group from being locked but
it doesn't seem to work with option group. The code:
Dim c as control
On error resume next
For each c in Me.Controls
If c.Name <> "OptionGroupName" Then
c.locked = true
End If
Next
Is the option group control different from the other types of controls?
Thanks.
ck
certain fields. I was trying to exclude an option group from being locked but
it doesn't seem to work with option group. The code:
Dim c as control
On error resume next
For each c in Me.Controls
If c.Name <> "OptionGroupName" Then
c.locked = true
End If
Next
Is the option group control different from the other types of controls?
Thanks.
ck