Hi,
I have a form (FMain) with a page /tab that contains 4 text boxes. When a user logs in to access the form using this password (Hedis) then txt1 and txt 2 must be locked and the other 2 are not.
Let's say text boxes names are:
Txt1, Txt2, Txt3, Txt4.
this is what I did but it doesn't seem to work:
If txtPassword = "Hedis" then
Me.FMain!Txt1.Locked = true
Me.FMain!Txt2.Locked = true
Me.FMain!Txt3.Locked = False
Me.FMain!Txt4.Locked = False
Elseif txtPassword = "Physician" then
Me.FMain!Txt1.Locked = true
Me.FMain!Txt2.Locked = true
Me.FMain!Txt3.Locked = true
Me.FMain!Txt4.Locked = true
End if
End sub
Thanks in advance
Joseph
I have a form (FMain) with a page /tab that contains 4 text boxes. When a user logs in to access the form using this password (Hedis) then txt1 and txt 2 must be locked and the other 2 are not.
Let's say text boxes names are:
Txt1, Txt2, Txt3, Txt4.
this is what I did but it doesn't seem to work:
If txtPassword = "Hedis" then
Me.FMain!Txt1.Locked = true
Me.FMain!Txt2.Locked = true
Me.FMain!Txt3.Locked = False
Me.FMain!Txt4.Locked = False
Elseif txtPassword = "Physician" then
Me.FMain!Txt1.Locked = true
Me.FMain!Txt2.Locked = true
Me.FMain!Txt3.Locked = true
Me.FMain!Txt4.Locked = true
End if
End sub
Thanks in advance
Joseph