Report Lines, Shaded

R

R. BRADFORD THOMAS

Good Morning,
I am using Windows 2000 and Access 2000.

I want to have alternate lines of my report shaded.

How do I accomplish this??

Brad
 
M

Marshall Barton

R. BRADFORD THOMAS said:
I am using Windows 2000 and Access 2000.

I want to have alternate lines of my report shaded.


Add code to the detail section's Format event procedure:

If Me.Section(0).BackColor <> vbWhite Then
Me.Section(0).BackColor = vbWhite
Else
Me.Section(0).BackColor = RGB(224,224,224) ' Lt. Gray
End If

Make sure that all the controls in the detail section have
their BackStyle property set to Transparent.
 
R

R. BRADFORD THOMAS

Thanks Marsh,
I will try this tonight.

Brad

Marshall Barton said:
Add code to the detail section's Format event procedure:

If Me.Section(0).BackColor <> vbWhite Then
Me.Section(0).BackColor = vbWhite
Else
Me.Section(0).BackColor = RGB(224,224,224) ' Lt. Gray
End If

Make sure that all the controls in the detail section have
their BackStyle property set to Transparent.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top