Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need to create a report that disp

Status
Not open for further replies.

atadbitslow

Programmer
Feb 26, 2001
301
US
I need to create a report that displays address changes. But the trick is I need to have the field(s) that changed appear in bold.

Any ideas? Thanks!
 
Ok, when you say you want to format changed address, i'm assuming that you either have one of the following.

A - a second address field
b - a yes/no field that reflects changes

Regardless, in the detail section of the report, in the onFormat event, modify my code to reflect your fields:

Code:
'Case a:
If Me![AddressField1] = Me![AddressField2] Then
    Me![State].FontWeight = 700
Else
    Me![State].FontWeight = 400
End If
Code:
'Case b:
If Me![NameOfYesNoField] = -1 Then '-1 stands for true
    Me![State].FontWeight = 700
Else
    Me![State].FontWeight = 400
End If

And, straight from the help files in access, here's the weight coversions

Thin 100
Extra Light 200
Light 300
Normal 400
Medium 500
Semi-bold 600
Bold 700
Extra Bold 800
Heavy 900

This is basically like conditional formatting.. HTH :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top