My stored procedure is very simple. It inserts a new record. At the end of it I have the following line:
SELECT SCOPE_IDENTITY()
1) Am I us
The Execute method (NOT Exec) returns a record set which contains the result from the stored procedure.
Set rs = cmdUA.Execute result = rs.Fields(0).Value