P
Phil Winstanley [Microsoft MVP ASP.NET]
Quentin,
You'll need to use SCOPE_IDENTITY() (SQL Server) or SELECT @@IDENTITY
(SQL Server and Access) at the end of your INSERT Statement, as so: -
INSERT INTO .............; SELECT SCOPE_IDENTITY();
Hth,
Phil Winstanley
Microsoft ASP.NET MVP
http://www.myservicescentral.com
You'll need to use SCOPE_IDENTITY() (SQL Server) or SELECT @@IDENTITY
(SQL Server and Access) at the end of your INSERT Statement, as so: -
INSERT INTO .............; SELECT SCOPE_IDENTITY();
Hth,
Phil Winstanley
Microsoft ASP.NET MVP
http://www.myservicescentral.com