pupu79
02-16-2003, 07:29 AM
I tried to following statements:
Dim RS
Set RS = Server.CreateObject("ADODB.RecordSet")
RS.CursorLocation = adUseClient
But there was an error reported on the 3rd statement. It said the arguement out of range. I looked up the microsoft document and found that actually CursorLocation is an enum constant. The value of adUseClient is 3. So I put 3 in the last statement instead of adUseClient. Now it works well.
Why? I assume the compiler should know that adUseClient is equal to 3.
Dim RS
Set RS = Server.CreateObject("ADODB.RecordSet")
RS.CursorLocation = adUseClient
But there was an error reported on the 3rd statement. It said the arguement out of range. I looked up the microsoft document and found that actually CursorLocation is an enum constant. The value of adUseClient is 3. So I put 3 in the last statement instead of adUseClient. Now it works well.
Why? I assume the compiler should know that adUseClient is equal to 3.