MichaelaLee
Programmer
Hi Everyone.
I know that if the recordcount is -1, it suppose to mean that this property is not supported. I'm using Microsoft SQL Server 2000 - 8.00.760 (Build 2195: Service Pack 3).
Here is the code:
Set mCommand = New ADODB.Command
mCommand.CommandType = adCmdStoredProc
mCommand.CommandText = "nf_GetInventoryByProgram"
Set mParam = mCommand.CreateParameter("@ProgramId", adVarChar, adParamInput, 15)
mParam.Value = cmbPrograms1.Columns(0).Text
mCommand.Parameters.Append mParam
mCommand.ActiveConnection = ado
rsInventory.CursorLocation = adUseClient
rsInventory.CursorType = adOpenKeyset
rsInventory.LockType = adLockBatchOptimistic
Set rsInventory = mCommand.Execute
After running the execute method ADO/SQL Server changes the setting to the following:
CursorLocation = 2 (adUseServer)
CursorType = 0 (????)
LockType = 1 (adLockReadOnly)
Why is it changing these setting on me. Please help. Thanks for any help.
Michael Lee
I know that if the recordcount is -1, it suppose to mean that this property is not supported. I'm using Microsoft SQL Server 2000 - 8.00.760 (Build 2195: Service Pack 3).
Here is the code:
Set mCommand = New ADODB.Command
mCommand.CommandType = adCmdStoredProc
mCommand.CommandText = "nf_GetInventoryByProgram"
Set mParam = mCommand.CreateParameter("@ProgramId", adVarChar, adParamInput, 15)
mParam.Value = cmbPrograms1.Columns(0).Text
mCommand.Parameters.Append mParam
mCommand.ActiveConnection = ado
rsInventory.CursorLocation = adUseClient
rsInventory.CursorType = adOpenKeyset
rsInventory.LockType = adLockBatchOptimistic
Set rsInventory = mCommand.Execute
After running the execute method ADO/SQL Server changes the setting to the following:
CursorLocation = 2 (adUseServer)
CursorType = 0 (????)
LockType = 1 (adLockReadOnly)
Why is it changing these setting on me. Please help. Thanks for any help.
Michael Lee