P
PeterM
I have a form (switchboard) and on SwitchBoard is a subform control
(subform!).
There are 10 fields on SwitchBoard entitled Program1 thru Program10. From
within subform1 I issued:
Dim i As Integer
For i = 1 To 10
Me("forms!switchboard!Program" & i).ForeColor =
DLookup("Boxclickedbordercolor", "SystemTable")
Next i
that code doesn't work. So I changed it to the literal below just for
testing and this code works.
Forms!switchboard!Program1.ForeColor = DLookup("Boxclickedbordercolor",
"SystemTable")
What is wrong for the first version?
Thanks for your help!
(subform!).
There are 10 fields on SwitchBoard entitled Program1 thru Program10. From
within subform1 I issued:
Dim i As Integer
For i = 1 To 10
Me("forms!switchboard!Program" & i).ForeColor =
DLookup("Boxclickedbordercolor", "SystemTable")
Next i
that code doesn't work. So I changed it to the literal below just for
testing and this code works.
Forms!switchboard!Program1.ForeColor = DLookup("Boxclickedbordercolor",
"SystemTable")
What is wrong for the first version?
Thanks for your help!