D
Dan
I want my form to load so that you can't change any
information in the records and if you want to change some
information then you have to click a button and then
change the data. Right now I have a for loop that checks
the tag property in the text boxes to see if there is a
the phrase "Lock" in it and if it finds it it, then it
will lock the text box. This is the code that I have:
Dim txt As TextBox
For Each myTxt In Me
If myTxt.Tag = "Lock" Then myTxt.Locked = True
End If
Next myTxt
Right now it says run time error 13 type mismatch and it
highlights the Next myTxt.
I would like it to also lock the check boxes and combo
boxes also if it is possible.
information in the records and if you want to change some
information then you have to click a button and then
change the data. Right now I have a for loop that checks
the tag property in the text boxes to see if there is a
the phrase "Lock" in it and if it finds it it, then it
will lock the text box. This is the code that I have:
Dim txt As TextBox
For Each myTxt In Me
If myTxt.Tag = "Lock" Then myTxt.Locked = True
End If
Next myTxt
Right now it says run time error 13 type mismatch and it
highlights the Next myTxt.
I would like it to also lock the check boxes and combo
boxes also if it is possible.