Re: How do I 'Highlight' a record in a report
- From: John <John@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 13 Dec 2007 13:51:04 -0800
Al,
Good Day. I tried using your example, but could not find the OnFormat event
on my report. I clicked on the properties form which has all the events
listed for the rerpot and fields on the report. Does this apply to Office
2007? If so, where do I go?
"Al Campagna" wrote:
Ross,.
Use the OnFormat event of the report to check for NewProduct = True, and
highlight it.
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If NewProduct = True Then
SomeField.BackColor = vbYellow
Else
SomeField.BackColor = vbWhite
End If
End Sub
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html
"Find a job that you love... and you'll never work a day in your life."
"Ross" <ross@xxxxxxxxxxxxx> wrote in message
news:473d178a$1@xxxxxxxxxxxxxxxxxxxxxxx
I have a database that catalogues our products and from that we produce a
Customer Catalogue.
We have now decided to "highlight" the New products in the report to make
it easier for our customer to see what is New, for example:
Code Desc Price
12345 Widget 1 2.50
42548 Widget99 6.50 (ticked in database as New Product needs to
be highlighted)
85421 Widget21 6.40
I have tried different code, on Format or On Print change Backcolour to
Grey, but it does not work.
Any help would be appreciated.
Ross
- Follow-Ups:
- Re: How do I 'Highlight' a record in a report
- From: Allen Browne
- Re: How do I 'Highlight' a record in a report
- Prev by Date: Re: =if order received, Highlithing details section in grey
- Next by Date: RE: Report Parameters
- Previous by thread: Re: email report per record
- Next by thread: Re: How do I 'Highlight' a record in a report
- Index(es):
Relevant Pages
|