It's hard to tell what problem you encounter, since you didn't define "IS NOT WORKING".....
Anyway, an UPDATE statement does not return a recordset, so there is no point in setting the results of Execute to rs.
Also, when the SQL statement was meant to be a SELECT statement, this is another problem:
Code:
set rs = conn.execute(SQL)
rs.movefirst
A recordset created by calling the Execute method of a Connection object is always a read-only, forward-only recordset and therefore does not support MoveFirst.
Finally, Loop doesn't make much sense all by itself. You'll need a While to be able to do a loop.
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.