S
Sergio Vasquez
Hi all,
I was hoping to get some help with the following problem...
I have to create a function that will set the enable property to True for a
set of text and combo boxes on a form. They are as follows.
cboTaskLine1, txtQuantLine1, txtCommentLine1
cboTaskLine2, txtQuantLine2, txtCommentLine2
cboTaskLine3, txtQuantLine3, txtCommentLine3
....
cboTaskLine12, txtQuantLine12, txtCommentLine12
I would like to have this function set the enable property to True for the
Line Number that is passed to the function.
I initially thought of doing something like what I have below, but realized
you cannot reference the properties of the control when you refer to the
controls in this way... Me("...")
Function EnableLine(LineNo As Integer)
Me("cboTaskLine" & LineNo).Enable = True
Me("txtQuantLine" & LineNo).Enable = True
Me("txtCommentLine" & LineNo).Enable = True
End Function
Any help would be greatly appreciated!
Thanks,
Sergio
I was hoping to get some help with the following problem...
I have to create a function that will set the enable property to True for a
set of text and combo boxes on a form. They are as follows.
cboTaskLine1, txtQuantLine1, txtCommentLine1
cboTaskLine2, txtQuantLine2, txtCommentLine2
cboTaskLine3, txtQuantLine3, txtCommentLine3
....
cboTaskLine12, txtQuantLine12, txtCommentLine12
I would like to have this function set the enable property to True for the
Line Number that is passed to the function.
I initially thought of doing something like what I have below, but realized
you cannot reference the properties of the control when you refer to the
controls in this way... Me("...")
Function EnableLine(LineNo As Integer)
Me("cboTaskLine" & LineNo).Enable = True
Me("txtQuantLine" & LineNo).Enable = True
Me("txtCommentLine" & LineNo).Enable = True
End Function
Any help would be greatly appreciated!
Thanks,
Sergio