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
 

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

Back
Top