This topic is locked

Changing the font style in specific date field whether a checkbox in t

12/7/2005 02:02:40
ASPRunnerPro General questions
orit author

I would like to change the style of the fonts in list view (_list page) depending if a checkbox in the MS-Access DB is not marked. for example, I have a Yes/No field named ckbRead. if this checkbox is not marked the fonts of the date in the date field in the _list page will be bold and red and if the checkbox in the DB is marked the fonts will be regular.
How to do that?
Thanks

Sergey Kornilov admin 12/8/2005

You need to change Sub LoopRS where Date field is displayed.
Replace Response.Write ProcessLargeText ... line with the following:

If GetData(rs.Fields("ckbRead"), "")="Yes" then

Response.Write strData

else

Response.Write "<font color=red><b>" & strData & "</b></font>"

end if