oki

codice:
if numaut >= cont then 
    diff = numaut - cont
    objConn.Execute("UPDATE [Pub-Aut] SET ID=ID+" & diff & " where Pub > "  & Session("id")) 
else 
    diff = cont - numaut 
    objConn.Execute("UPDATE [Pub-Aut] SET ID=ID-" & diff & " where Pub > "  & Session("id")) 
end if
ho replicato la tua logica. NON SO se sia giusta (lo sai tu).