B
Ben8765
Hi,
I'd like to pass the name of a textbox to a procedure, and then set that
textbox to be locked.
Reason: I want to set many textboxs' properties to locked (and later other
properties).
This is what I have so far:
Private Sub Status_RS_Initiated_AfterUpdate()
Call Textbox_Effects("RS_Initiated")
End Sub
Public Sub Textbox_Effects(TextBox_Name)
TextBox_Name.Locked = False
End Sub
Problem: 'TextBox_Name.Locked = False' returs error: 'Object Required'
I can take awa the quotes from "RS_Initiated", but then that just passes the
value of the text box. I want to pass the name.
Any ideas?
I'd like to pass the name of a textbox to a procedure, and then set that
textbox to be locked.
Reason: I want to set many textboxs' properties to locked (and later other
properties).
This is what I have so far:
Private Sub Status_RS_Initiated_AfterUpdate()
Call Textbox_Effects("RS_Initiated")
End Sub
Public Sub Textbox_Effects(TextBox_Name)
TextBox_Name.Locked = False
End Sub
Problem: 'TextBox_Name.Locked = False' returs error: 'Object Required'
I can take awa the quotes from "RS_Initiated", but then that just passes the
value of the text box. I want to pass the name.
Any ideas?