A
Andrew
I have a report which details a list of property sales, each sale row also
has a subreport which shows if there are also any previous or any later
sales.
Within the subreport I just want to highlight (change fore or backcolor) the
Sale Date and Price matching the current sale in the main report. This will
provide a quick reference that the sale the person is looking has an earlier
and a later sale.
ie Main Report
Detail Section
Sale 1 House, Sold 1/9/2003 $400,000, Colonial Style etc........
Subreport
9/1/2004 $500,000
**1/9/2003 $400,000**
5/9/2000 $200,000
Sale 2 Unit, Sold 12/8/2002 $150,000, 2BR etc ......
Subreport
18/3/2004 $250,000
11/8/2003 $200,000
**12/8/2002 $200,000**
Using the "OnFormat" event of "Detail" Section of the "Subreport" I am
trying to see if the sales dates match and if so to change the backcolour of
the Detail section. However I can't seem to get the syntax correct and the
report keeps falling over.
If Me.LastSaleDate = Reports!MainReport!LastSaleDate Then
Me.Detail.BackColor = 12514556
Else
Me.Detail.BackColor = 16777215
End If
I have tried many formats, but don't seem to be able to get this to work.
Any help would be appreciated
Andrew
has a subreport which shows if there are also any previous or any later
sales.
Within the subreport I just want to highlight (change fore or backcolor) the
Sale Date and Price matching the current sale in the main report. This will
provide a quick reference that the sale the person is looking has an earlier
and a later sale.
ie Main Report
Detail Section
Sale 1 House, Sold 1/9/2003 $400,000, Colonial Style etc........
Subreport
9/1/2004 $500,000
**1/9/2003 $400,000**
5/9/2000 $200,000
Sale 2 Unit, Sold 12/8/2002 $150,000, 2BR etc ......
Subreport
18/3/2004 $250,000
11/8/2003 $200,000
**12/8/2002 $200,000**
Using the "OnFormat" event of "Detail" Section of the "Subreport" I am
trying to see if the sales dates match and if so to change the backcolour of
the Detail section. However I can't seem to get the syntax correct and the
report keeps falling over.
If Me.LastSaleDate = Reports!MainReport!LastSaleDate Then
Me.Detail.BackColor = 12514556
Else
Me.Detail.BackColor = 16777215
End If
I have tried many formats, but don't seem to be able to get this to work.
Any help would be appreciated
Andrew