as you mentioned 'next page' i assume your going to be calling this Stored Procedure from a PHP/ASP page?
If you're using ASP, either of these should do it...
Code:
set rsTest = server.createobject("ADODB.RecordSet")
rsTest.Open "spTestStoredProc", Conn, 3, 1 ' the 3,1 cursor and locktype enable the recordset to return the primary key.
iNewID = rsTest("ID")
rsTest.close
set rsTest = nothing
some server installations have a beef with that, so if that dont not work, try this...
Code:
set Conn = server.createobject("ADODB.Connection")
SQL = "INSERT INTO Test (Column1,Column2) VALUES ('Norks','Baps');
cn.execute SQL
set rsTestID = server.createobject("ADODB.Recordset")
rsTestID.open "SELECT @@IDENTITY AS 'NewID';", Conn, 2, 3
iNewID = rsTestID("NewID")
rsTestID.close
set rsTestID = nothing
HTH!
*edit*
and what TiG said, Access Backend + High Volume Site = Tears and P45