Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / May 2008

Tip: Looking for answers? Try searching our database.

Fonts Color

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alimbilo - 15 May 2008 21:10 GMT
Hello,
How can I have a font to change color for example if the answer is negative,
I want it to be in RED and if it's positive BLACK.

Thanks
Douglas J. Steele - 15 May 2008 22:27 GMT
Look into Conditional Formatting.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)

> Hello,
> How can I have a font to change color for example if the answer is
> negative,
> I want it to be in RED and if it's positive BLACK.
>
> Thanks
John Spencer - 20 May 2008 12:14 GMT
IF this is on a report, you can use the format property of the control.

Just set the format to something like the following.
#,##0.00[Black];-#.##0.00[Red];0[Green]

John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County

> Look into Conditional Formatting.
Margaret Bartley - 20 May 2008 02:39 GMT
If this is a report, in the BeforeFormat option of the Detail section,
put
   If Answer <0 then
      Answer.FontColor=255
   Else
       Answer.FontColor=0
   End If

> Hello,
> How can I have a font to change color for example if the answer is
> negative,
> I want it to be in RED and if it's positive BLACK.
>
> Thanks
Linq Adams - 20 May 2008 04:15 GMT
I'm familiar with the Detail_Format event of the Detail section of a report,
but what version of Access do you find the BeforeFormat  event in?

Signature

There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.