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!

Italicising a date under conditions

Status
Not open for further replies.

LizSara

Technical User
Oct 1, 2007
1,503
GB
I have a formula that currently changes the colour of a date field if the date is older than 7 days:

if Maximum ({DX_XML_LOG.PROCESS_DATE}, {BASES.BASE_NAME}) < currentdate - 7 then red

can i change this so it puts the date in italics under the same condition?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Whoever battles with monsters had better see that it does not turn him into a monster. And if you gaze long into an abyss, the abyss will gaze back into you. ~ Nietzsche"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
Leave the color formula as is, and then in font->style->x+2 add:

if Maximum ({DX_XML_LOG.PROCESS_DATE}, {BASES.BASE_NAME}) < currentdate - 7 then crItalic

-LB
 
Perfect, thank you :)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Whoever battles with monsters had better see that it does not turn him into a monster. And if you gaze long into an abyss, the abyss will gaze back into you. ~ Nietzsche"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top