Hi
At a guess it is probably because it is not the first recordset being
returned.
Instead it may be best to use an output parameter to do this.
Also if you are using SQL 2000 then use the SCOPE_IDENTITY() function.
John
"Allan" <hl******@yahoo.com> wrote in message
news:43**************************@posting.google.c om...
I use select @@identity to return @@identity from my store procedure,
but I could not retrive it from my Visual basic code, like variable=
oRS.fields.item(0).value, it always says item can not be found....