Results 1 to 23 of 23

Thread: More than 40 fields in ADO Query is too Complex

Threaded View

  1. #9
    gibra
    Guest

    Re: More than 40 fields in ADO Query is too Complex

    Quote Originally Posted by Darkbob View Post
    myData.Open mstrSQL, ConString$, adOpenDynamic, , adCmdText
    ConString$ is totally wrong, in this line.

    The Open methods require a ADODB.Connection object already open, of course.

    Example:

    Code:
        Dim CN As ADODB.Connection
        Set CN = New ADODB.Connection
        CN.ConnectionString = ConString$
        CN.Open 
        CN.CursorLocation = adUseClient
    
    ...
        myData.Open mstrSQL, CN, adOpenDynamic, , adCmdText
    ...

    P.S. Remove all DAO references, if any, use only ADO(DB).
    Last edited by gibra; Mar 25th, 2016 at 11:14 AM.

Tags for this Thread

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