Making a field in a single record bold

G

Guest

On a form I want to display a price field in bold if it is zero.
I have tried the following code in the AfterUpdate event of the field but
have found that the prices on all the displayed records change to bold not
just the one that is zero.
If Me.Price = 0 Then
Me.Price.FontBold = True
Else
Me.Price.FontBold = False
End If
Can anyone suggest how to get just the zero record in bold?
 
G

Guest

Open the form in design view, select the field, and from the menu bar select
Format > Conditional formating.

You can select the value and the way you want this field to be displayed for
that value
 
G

Guest

You are OK with the code, but you also need to put the same code in the On
Current Event for the form.
 
G

Guest

Thanks - this has done what I wanted.

Ofer said:
Open the form in design view, select the field, and from the menu bar select
Format > Conditional formating.

You can select the value and the way you want this field to be displayed for
that value
 

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

Top