1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
function enregistrer(num)
serial=Cstr(num)
sql_verif="SELECT * FROM CARTES where SERIAL LIKE '" & serial & "' "
Set num_verif=connexion.Execute(sql_verif)
If num_verif.eof then
num_existe=1
end if
If num_existe=1 then
sql_add="INSERT INTO CARTES (Serial, Etat, Localisation) VALUES ('" & serial & "', 'Vierge', 1)"
add=connexion.Execute(sql_add)
Set add= Nothing
enregistrer="ok"
else
enregistrer="probleme"
end if
Set num_existe=nothing
Set num_verif = nothing
end function |
Partager