otra cosa.... mejor una pregunta, imagen1, imagen2, imagen3 e imagen4 son columnas de tu tabla??? porque si es asi deberias quitar estas tres lineas del codigo:
while not rs.eof
rs.movenext
wend
Yo te lo habia recomendado porque pense q la tabla tenia otra estructura ejemplo:
IDcomercio | urlimagen
1 |
http://.../images/foto1.jg
1 |
http://.../frente.jpg
1 |
http://.../images/foto2.jg
1 |
http://.../images/foto3.jpg
2 |
http://.../images/foto4.jg
2 |
http://.../images/frente2.jpg
2 |
http://.../images/comer.jg
2 |
http://.../images/estaciona.jpg
pero si tu tabla tiene esta otra estructura
IDComercio | imagen1 | imagen 2 | imagen3 | imagen4
1 |
http://.... |
http://.... |
http://.... |
http://....
2 |
http://.... |
http://.... |
http://.... |
http://....
no tienes necesidad de crear el ciclo por q contiens todos los datos dentro d una linea, espero q hayas comprendido la diferencia, salu2 bye..