beaniebear
Programmer
Can I use a command object to return a recordset? If so, could you please give me a small example?
Also I have a stored procedure that runs one of three querries depending on the parameters entered. I'm running the stored procedure using the connection object. The SP returns the recordset but even if I set the cursor and lock properties of the recordset correctly I cannot use .movelast etc as it brings up an error that the rowset cannot be restarted. If I put the queries into seperate SP's then I am able to move through the recordset using .movelast etc. Why is there a difference?
Also I have a stored procedure that runs one of three querries depending on the parameters entered. I'm running the stored procedure using the connection object. The SP returns the recordset but even if I set the cursor and lock properties of the recordset correctly I cannot use .movelast etc as it brings up an error that the rowset cannot be restarted. If I put the queries into seperate SP's then I am able to move through the recordset using .movelast etc. Why is there a difference?