Hi people,
I have a recordset displayed as a table which basically holds all my customer concerns. What im trying to do is have some sort of field indicator which will remind me what state the concern is in. I wanted to have colour indicators depending on if a field is empty or not.
this is my code so far
Do While Not rstDBEdit.EOF
if rstDBEdit.Fields("tblconcern.areaid").Value="" then
dbColour="#FF0000"
end if
%>
<tr>
<td><%= rstDBEdit.Fields("concernid").Value %></td>
<td><%= rstDBEdit.Fields("CustomerName").Value %></td>
<td><%= rstDBEdit.Fields("Site").Value %></td>
<td><%= rstDBEdit.Fields("ConcernDetails").Value %></td>
<td><%= rstDBEdit.Fields("ProductDescription").Value %></td>
<td><%= rstDBEdit.Fields("ConDate").Value %></td>
<td><a href=" rstDBEdit.Fields("concernid").Value %>">View</a></td>
<td bgcolor=<%dbColour%>></td>
</tr>
<%
rstDBEdit.MoveNext
Loop
The last row of the table called state i want to display a colour. Any help would be greatly appreciated.
I have a recordset displayed as a table which basically holds all my customer concerns. What im trying to do is have some sort of field indicator which will remind me what state the concern is in. I wanted to have colour indicators depending on if a field is empty or not.
this is my code so far
Do While Not rstDBEdit.EOF
if rstDBEdit.Fields("tblconcern.areaid").Value="" then
dbColour="#FF0000"
end if
%>
<tr>
<td><%= rstDBEdit.Fields("concernid").Value %></td>
<td><%= rstDBEdit.Fields("CustomerName").Value %></td>
<td><%= rstDBEdit.Fields("Site").Value %></td>
<td><%= rstDBEdit.Fields("ConcernDetails").Value %></td>
<td><%= rstDBEdit.Fields("ProductDescription").Value %></td>
<td><%= rstDBEdit.Fields("ConDate").Value %></td>
<td><a href=" rstDBEdit.Fields("concernid").Value %>">View</a></td>
<td bgcolor=<%dbColour%>></td>
</tr>
<%
rstDBEdit.MoveNext
Loop
The last row of the table called state i want to display a colour. Any help would be greatly appreciated.