|
-
Nov 15th, 2005, 02:49 AM
#1
Thread Starter
Addicted Member
[RESOLVED] ad Question
I often see these things in a vb program does anybody know what these things mean and how they are used.
adOpenDynamic
adOpenForwardOnly
adOpenKeyset
adOpenStatic
adLockBatchOptimistic
adLockOptimistic
adLockPessimistic
adLockReadOnly
Added [RESOLVED] to thread title and green "resolved" checkmark - Hack
Last edited by Hack; Nov 15th, 2005 at 07:21 AM.
-
Nov 15th, 2005, 02:57 AM
#2
Re: ad Question
Those are named constant values that is declared in the ActiveX Data Objects Library (ADO). They are used to specify how an ADO Recordset should behave. The first 4 define what type of recordset you want to use, and the next 4 deines the lock they will have on the underlaying database.
Look up the Open method for an ADODB.Recordset object in MSDN Library for more information.
-
Nov 15th, 2005, 04:12 AM
#3
Thread Starter
Addicted Member
Re: ad Question
thanks . One last question. But why does it work even if I don't write those things like
-
Nov 15th, 2005, 04:16 AM
#4
Re: ad Question
Simply because default values are then used, if I remember correctly (without looking it up) the defults are adOpenForwardOnly and adLockReadOnly.
-
Nov 15th, 2005, 04:37 AM
#5
Thread Starter
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|