I've made my form readonly based upon which user opens this form. I have a textbox which I'd like to make either enabled and/or unlocked for a user to enter their search criteria. I've tried me!textbox.enabled = TRUE, as well as
me!textbox.locked=FALSE, but neither or both methods are not allowing me to key into this textbox. Is the readonly overriding the enable and lock controls? Is there a different datamode that will allow a user to key into a textbox while the entire form is locked?
Does this method work? Or instead of ctl.Value, could it be ctl.enable or ctl.lock. If yes, what datamode need to be?
For Each ctl In Me.Controls
If ctl.ControlType = me!textbox Then
If ctl.Value <> False Then
ctl.Value = False
End If
End If
Next ctl