hi folks, hoping someone can help me out with this one:
I have a report.asp page where i display data from an Access query. I know how to set my table so that each row will alternate 2 colors back and forth, but can i set the background color, based on a value in a field.
When someone enters data in my form, one of the fields is called "recency" Here they must select whether the data is "new", "ongoing", or "expired". These are text fields in my db.
Soooo, when i show all my records in my report, I want to be able to base the bgcolor for a particular recordset, based on the value that record has in it's "recency" field. i.e if that recordset has "new" in the Recency field, then display the row background in green, if it is "ongoing", then the row background should be yellow, etc etc
Any ideas?
Here is a couple lines of my code where i display the data:
Code:
<tr VALIGN="TOP">
<td><%Response.Write RS("planno")%></td>
<td><%Response.Write RS("type")%></td>
<td><%Response.Write RS("company")%></td>
</tr>
|