Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recordset - default cursor type

Status
Not open for further replies.

emozley

Technical User
Jan 14, 2003
769
GB
Hi,

If I create a recordset with:

rsUsers.Open strSQL, adoCon

and I've not specified the cursor type, which one will it default to? If I want to make it forward only what is the syntax?

cheers

 
if you include the file adovbs.inc then
here is the syntax

RS.Open strSQL, adoConn, adOpenForwardOnly, adLockOptimistic


otherwise

RS.Open strSQL, adoConn, 0, 3


By default I think it creates

RS.Open strSQL, adoConn, adOpenStatic, adLockOptimistic

or

RS.Open strSQL, adoConn, 3, 3


cheers

QatQat

Life is what happens when you are making other plans.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top