Add this table to your report query with no join and select the copynum and
colornum as fields. This will produce 4 records for each record you want to print.
Add a new grouping level to your report as the first grouping level.
Group on CopyNum.
Add a group header.
Set Page break on the group header.
In the Page header's format event add code that looks like
Private Sub PageHeader_Format(Cancel As Integer, FormatCount As Integer)
Me.Section(acPageHeader).BackColor = Me.ColorNum
End Sub
My test table looks like this.
OrderNum ColorNum ColorName
1 16711680 vbBlue
2 65535 vbYellow
3 255 vbRed
4 65280 vbGreen
That is SWEET!
What an excellent question and answer.
Definitely filing this away for future use.
Thanks,
Jeff Conrad
Bend, Oregon
>.
>