Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/07/2003, 02:51
Avatar de ivan02
ivan02
 
Fecha de Ingreso: diciembre-2001
Mensajes: 449
Antigüedad: 23 años, 4 meses
Puntos: 2
hola esta muy bien tu codigo lo andava buscando desde hace un buen tiempo

oye tengo un problema a la hora de usarlo


mi base se llama afiliados

y la tabla donde estan los datos es afiliados tambien
entonces porque no funciona o en que estoy mal??

<%
Set Master = Server.CreateObject("ADODB.Connection")
Master.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("afiliados.mdb"))

sSQL = "select * from Afiliados order by usuario"
set RS = Master.Execute(sSQL)

sColor = "999999"

while not RS.eof
If sColor = "999999" Then
sColor = "ffffff"
Else
sColor = "999999"
End If

%>

<table width="600" border="0" cellspacing="1" cellpadding="1">
<tr>

<td bgcolor="<%=(sColor)%>"><%=(RS.fields("usuario").v alue)%></td>
</tr>
</table>
<%
RS.movenext
wend
%>


en que estoy mal???

saludotes