Conditional Formatting in a report

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi everyone,

Is it possible to do conditional formatting in A97? if so how would I format
a text box on a report such that if the box contains the word 'REPAIR' it
will be highlighted in a different colour and bold?

MTIA
 
souchie40,
Use the OnFormat event for the section that contains "Repair".
(use your own names)
If SvcType = "Repair" Then
SvcType.FontBold = True
SvcType.ForeColor = QBColor(12)
Else
SvcType.FontBold = False
SvcType.ForeColor = QBColor(0)
End If
 
Al,

Thanks that worked a treat

Souchie40

Al Camp said:
souchie40,
Use the OnFormat event for the section that contains "Repair".
(use your own names)
If SvcType = "Repair" Then
SvcType.FontBold = True
SvcType.ForeColor = QBColor(12)
Else
SvcType.FontBold = False
SvcType.ForeColor = QBColor(0)
End If

--
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions
 

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