Hey there. I have the following code:
If [Accession Number] = 0 Then
Me!Comments.Locked = True
Me!Description.Locked = True
End If
This works fine. It locks the chosen controls if the value of Accession Number is 0. But there must be way of writing code that'll do the same for every control in the page, i.e. lock all controls if [Accession Number] = 0.... without writing Me![Control].Locked = True for each individual control. ----------------------------------------
Knowing is not enough, we must apply. Willing is not enough, we must do.
--So said the ever wise Bruce Lee
Memorize and live by it!
If [Accession Number] = 0 Then
Me!Comments.Locked = True
Me!Description.Locked = True
End If
This works fine. It locks the chosen controls if the value of Accession Number is 0. But there must be way of writing code that'll do the same for every control in the page, i.e. lock all controls if [Accession Number] = 0.... without writing Me![Control].Locked = True for each individual control. ----------------------------------------
Knowing is not enough, we must apply. Willing is not enough, we must do.
--So said the ever wise Bruce Lee
Memorize and live by it!