Results 1 to 32 of 32

Set listobject as ADODB object and use sql on this.

Threaded View

  1. #16
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,946

    Re: Set listobject as ADODB object and use sql on this.

    Ok guys,

    my macro and code in attachment.

    https://paste.ofcode.org/ZqQEnurLTT4q2EcwrG44dy

    Now i want to write join on these two recordsets.
    Or maybe better is to write left join within only one recordset (rst1?) and not to split tables into 2 separate recordets?

    How can i do this?

    SQL should work like below:

    SELECT rst1.*
    FROM rst1 LEFT JOIN rst2 ON rst1.Order= rst2.Order
    WHERE rst2.Order Is Null
    Please help,
    Best,
    Jacek
    Attached Files Attached Files
    Last edited by jaryszek; 06-12-2018 at 08:18 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Copy filtered column of ListObject to another ListObject
    By snapfade in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-15-2016, 04:00 PM
  2. Replies: 0
    Last Post: 06-19-2014, 02:09 PM
  3. Use Excel as Database by opening excel workbook as ADODB object
    By dragonvoice in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-21-2013, 04:13 AM
  4. [SOLVED] ListObject DataBodyRange Returns Object Variable Not Set Error
    By goss in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2013, 01:51 PM
  5. Use of ListObject
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-04-2013, 03:29 PM
  6. Adodb recordset object, columns and rows transposed
    By DaveF in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-21-2010, 09:18 AM
  7. Object Required Error - Adodb Parameters
    By robnot in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2007, 02:55 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1