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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional Formating HELP

Status
Not open for further replies.

RJL1

Technical User
Oct 3, 2002
228
US
I have a report that shows all open orders from previous days. I want to make all orders 2 days or older BOLD. The age of the order is deternime by the download dat (date we got the order) I would like to make the entire record BOLD but the order munber will be suficient.

Thanks
RJL1
 
Assuming your date text field is in the Detail section of the report, you need some code like this in the Detail section's OnFormat event. In this example, the date field is called txtDate:

Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
    If txtDate < Now() - 2 Then txtDate.FontWeight = 800
End Sub

The weight of plain text is 400.
[pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top