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

Conditional Formating with Access97

Status
Not open for further replies.

lizI3

Programmer
Jul 2, 2002
31
CA
Iam working with access97 and would like to format a field in a Report (the report is a main report with a sub report) based on a condition. I have 2 fields TransMain(on the main report) and TransNo (on the sub report). If transNo does not equal TransMain then I want TransNo to be Bold. I can do this very easily in access2000 but cannot get the code or even where to enter the code in access97. Would appreciate any help
Thanks Liz
 
Hi

No promises, but have you tried in the onformat event of the section (ie detail?) where transno is:

If Reports!MyMainReport!TransMain = TransoNo Then
' set font of transno normal
Else
' set font of transno bold
End if
Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Thanks KenReay I think this will work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top