N
Nathan C. Lee
I have a VBA program which will decide the color of TextBoxes inside the
detail section based on dates in a query. If a TextBox turns red in ANY of
the records, the TextBox in the group header must turn red, otherwise it
will remain green. My code, which will run On Format in my detail section
reads:
Me.ProgramHeaderField.ForeColor = vbRed
The problem is that when I do this, the color is changed on the NEXT group
header, which is not appropriate. I realize that it is an order-of-execution
problem when Access is formatting the page, because if I store the TextBox
in a group footer instead of a group header, the color is changed correctly.
So how can I have it "go back" and change the color on a previously printed
group header?
Nathan
detail section based on dates in a query. If a TextBox turns red in ANY of
the records, the TextBox in the group header must turn red, otherwise it
will remain green. My code, which will run On Format in my detail section
reads:
Me.ProgramHeaderField.ForeColor = vbRed
The problem is that when I do this, the color is changed on the NEXT group
header, which is not appropriate. I realize that it is an order-of-execution
problem when Access is formatting the page, because if I store the TextBox
in a group footer instead of a group header, the color is changed correctly.
So how can I have it "go back" and change the color on a previously printed
group header?
Nathan