D
DaveFrag
I have a parent form which contains six child forms. The parent form is
named "JobMon" and the child forms are named "JMwin01" through "JMwin06".
Rather than referring to a control properity on each child form individually
such as "Forms!JobMon!JMwin01.Controls(BoxName).BackColor = SetColor", I'd
like to use a For...Next loop like I already do with the ".Controls(BoxName)"
control, for the child form names. How is this done for a form name?
Rather than...
Forms!JobMon!JMwin01.Controls(BoxName).BackColor = SetColor
Forms!JobMon!JMwin02.Controls(BoxName).BackColor = SetColor
I'd like to use...
For x = 1 to 6
Forms!JobMon!JMwin0(x).Controls(BoxName).BackColor = SetColor
Next x
named "JobMon" and the child forms are named "JMwin01" through "JMwin06".
Rather than referring to a control properity on each child form individually
such as "Forms!JobMon!JMwin01.Controls(BoxName).BackColor = SetColor", I'd
like to use a For...Next loop like I already do with the ".Controls(BoxName)"
control, for the child form names. How is this done for a form name?
Rather than...
Forms!JobMon!JMwin01.Controls(BoxName).BackColor = SetColor
Forms!JobMon!JMwin02.Controls(BoxName).BackColor = SetColor
I'd like to use...
For x = 1 to 6
Forms!JobMon!JMwin0(x).Controls(BoxName).BackColor = SetColor
Next x