Forums
This topic is locked
alternate row colours???
Posted 03 Jan 2002 21:22:56
1
has voted
03 Jan 2002 21:22:56 David Behan posted:
Can anyone tell me the code to include to get alternate a grey background on row one, a darker grey background on row two, grey on row three, darker grey on row four, and so on.No matter how many rows appear in the recordset I want this alternate row colours to go through out. It has been done with this forum for example. Any help???
Cheers
C:/Dos
C:/Dos/Run
Run/Dos/Run
Replies
Replied 03 Jan 2002 23:03:55
03 Jan 2002 23:03:55 Owen Eastwick replied:
Find the repeat region code then add a bit of code inside the <tr> tag, something like:
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<tr <% If Repeat1__numRows Mod 2 = 0 Then %>bgcolor="#DFDFDF"<% End If %> bgcolor="#EFEFEF">
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<tr <% If Repeat1__numRows Mod 2 = 0 Then %>bgcolor="#DFDFDF"<% End If %> bgcolor="#EFEFEF">
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo