ho to change font

  • Thread starter Thread starter Henry
  • Start date Start date
H

Henry

How would I change the font in the report on certain rows

lets say I'd like to do something "if the text field = "string" then set
font to bold

I'm not too familiar with vba does anybody have a sample

Hen
 
How would I change the font in the report on certain rows

lets say I'd like to do something "if the text field = "string" then set
font to bold

I'm not too familiar with vba does anybody have a sample

Hen

Using which version of Access?
In Access 2000 or later you can use the Conditonal Formatting
property.

The below code will work in all versions:

In the Detail format event:

If [SomeField] = "Some Text" then
[SomeControl].FontBold = True
Else
[SomeControl].FontBold = False
End If
 
Back
Top