Forums
This topic is locked
Alternate Cell Rows Color
Replies
Replied 04 Mar 2002 17:41:54
04 Mar 2002 17:41:54 Owen Eastwick replied:
Set up your table and repeat region then just modify the <b>tr</b> tag like:
<pre id=code><font face=courier size=2 id=code>
<%
While ((Repeat1__numRows <> 0) AND (NOT RecordsetName.EOF))
%>
<tr <% If Repeat1__numRows Mod 2 Then %>bgcolor="#FF0000"<% Else %>bgcolor="#CCCCCC"<% End If %>>
<td width="69"><%=(RecordsetName.Fields.Item("Field1".Value)%></td>
<td width="40"><%=(RecordsetName.Fields.Item("Field2".Value)%></td>
<td width="32"><%=(RecordsetName.Fields.Item("Field3".Value)%></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
RecordsetName.MoveNext()
Wend
%>
</font id=code></pre id=code>
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
<pre id=code><font face=courier size=2 id=code>
<%
While ((Repeat1__numRows <> 0) AND (NOT RecordsetName.EOF))
%>
<tr <% If Repeat1__numRows Mod 2 Then %>bgcolor="#FF0000"<% Else %>bgcolor="#CCCCCC"<% End If %>>
<td width="69"><%=(RecordsetName.Fields.Item("Field1".Value)%></td>
<td width="40"><%=(RecordsetName.Fields.Item("Field2".Value)%></td>
<td width="32"><%=(RecordsetName.Fields.Item("Field3".Value)%></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
RecordsetName.MoveNext()
Wend
%>
</font id=code></pre id=code>
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Replied 04 Mar 2002 17:52:00
04 Mar 2002 17:52:00 Phuc Ngo replied:
Thank you again!
Let me go and try it now.
Let me go and try it now.
Replied 05 Mar 2002 06:32:27
05 Mar 2002 06:32:27 Steven Tam replied:
there are a number of extensions that does what you want available for download from macromedia.com