num = 1024Set RSMensuales = Nothing RSMensuales.Open "UPDATE TMensual SET fac_mes = '" & Trim(num) & "'" & _ "WHERE per_mes = '" & per & "'", CnSQLconexion, adOpenKeyset, adLockOptimistic
num=100 while not.eof if periodo = per then .edith .field("fac_mes") = Trim(num) .update .movenext num= num + 1 end ifwend
num = 100Set RSMensuales = NothingRSMensuales.Open "UPDATE TMensual SET fac_mes = '" & Trim(num) & "'" & _"WHERE per_mes = '" & per & "'", CnSQLconexion, adOpenKeyset, adLockOptimistic