Results 1 to 5 of 5

Thread: [RESOLVED] ad Question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2004
    Location
    Philippines
    Posts
    149

    Resolved [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.

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2004
    Location
    Philippines
    Posts
    149

    Re: ad Question

    thanks . One last question. But why does it work even if I don't write those things like

    VB Code:
    1. rs.open SQL,Con

  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: ad Question

    Simply because default values are then used, if I remember correctly (without looking it up) the defults are adOpenForwardOnly and adLockReadOnly.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2004
    Location
    Philippines
    Posts
    149

    Re: ad Question

    Thanks for the reply.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width