maxpouliot
04-10-2006, 04:33 PM
Hi,
i'm using asp with access and i need to get the id of the following code
SQL="INSERT INTO tAteliers (nom,dateA, heure, duree, endroit, max, restantes, formateurs) VALUES ('" & nom & "','" & dateA & "', '" & heureA & "', '" & duree2 & "', '" & endroitA & "', " & maxA & ", " & maxA & ",'" & formateurs &"')"
Conn.Execute(SQL)
What's the more efficient way to get the id? In php i use mysql_insert_id, but is there something equivalent in asp with access?
i'm using asp with access and i need to get the id of the following code
SQL="INSERT INTO tAteliers (nom,dateA, heure, duree, endroit, max, restantes, formateurs) VALUES ('" & nom & "','" & dateA & "', '" & heureA & "', '" & duree2 & "', '" & endroitA & "', " & maxA & ", " & maxA & ",'" & formateurs &"')"
Conn.Execute(SQL)
What's the more efficient way to get the id? In php i use mysql_insert_id, but is there something equivalent in asp with access?