Hi All
This is simple but driving me absolutely mental.
I have a form that loads with certain textboxes locked by default. I am trying to unlock these textboxes if newrecord = true and have the following code
Well turns out, ctr.locked (the even i am looking for) is not an option and the form generates an error on load.
When I try
Am i missing something here?
This is simple but driving me absolutely mental.
I have a form that loads with certain textboxes locked by default. I am trying to unlock these textboxes if newrecord = true and have the following code
Private Sub Form_Load()
dim ctr as control
if me.newrecord then
if typeof ctr is textbox then
ctr.***(unlocked) = true
end if
end if
end if
End Sub
Well turns out, ctr.locked (the even i am looking for) is not an option and the form generates an error on load.
When I try
in the declarations, i do have the locked event in the list but that generates a type mismatch error on load.dim ctr as textbox
Am i missing something here?