+ Reply to Thread
Results 1 to 9 of 9

Inner Join Statement (A table & a query)

  1. #1
    Forum Contributor VAer's Avatar
    Join Date
    09-10-2016
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    803

    Inner Join Statement (A table & a query)

    I have two tables: Table_abc Table_xyz
    XyzQuery is a query from Table_xyz
    I would like to set up AbcQuery which needs inner join XyzQuery

    How to correct my Inner Joint statement?

    Thanks.

    Since SQL statement is not allowed to be posted, so I add some space inbetween.

    Please Login or Register  to view this content.
    Attached Images Attached Images
    Last edited by VAer; 02-21-2017 at 02:58 PM.

  2. #2
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Inner Join Statement (A table & a query)

    Why do you need Xyz Query?

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor VAer's Avatar
    Join Date
    09-10-2016
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    803

    Re: Inner Join Statement (A table & a query)

    Quote Originally Posted by kasan View Post
    Why do you need Xyz Query?
    I need to copy XyzQuery to a separate excel spread sheet, and I also need to copy AbcQuery to a separate excel sheet.

  4. #4
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Inner Join Statement (A table & a query)

    Ok,
    1) run your query XyzQuery and return result on one sheet
    Please Login or Register  to view this content.
    2) run query from post #2 and return result to another sheet

  5. #5
    Forum Contributor VAer's Avatar
    Join Date
    09-10-2016
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    803

    Re: Inner Join Statement (A table & a query)

    Quote Originally Posted by kasan View Post
    Ok,
    1) run your query Xyz
    yes, the issue is the code cannot understand AbcQuery

  6. #6
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Inner Join Statement (A table & a query)

    Did you test query from post #2?
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor VAer's Avatar
    Join Date
    09-10-2016
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    803

    Re: Inner Join Statement (A table & a query)

    Quote Originally Posted by kasan View Post
    Did you test query from post #2?
    Okay, I will take out second part then test. Currently it cannot compile with part 2 code.

  8. #8
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Inner Join Statement (A table & a query)

    Show us whole code you try to make work.

  9. #9
    Forum Contributor VAer's Avatar
    Join Date
    09-10-2016
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    803

    Re: Inner Join Statement (A table & a query)

    Quote Originally Posted by kasan View Post
    Show us whole code you try to make work.
    The code is able to copy XyzQuery into a speadsheet. I would prefer not to show the whole code, since it is not necessary, and more importantly, it is work-related(not personal stuff). If I show the whole code, I need to replace a lot of words. And the program get involved with other tasks, query is just part of code.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Left join vs Right join
    By Speshul in forum Access Tables & Databases
    Replies: 4
    Last Post: 10-01-2014, 11:12 AM
  2. [SOLVED] SQL Join - Left Join, but with 4 tables
    By kenny.fsw in forum Access Tables & Databases
    Replies: 4
    Last Post: 05-29-2013, 09:03 AM
  3. [SOLVED] 2 JOIN in SQL statement
    By purplesky in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-02-2013, 07:59 AM
  4. Trying to join to If's and an And!
    By DSL1970 in forum Excel General
    Replies: 5
    Last Post: 06-27-2012, 11:29 PM
  5. ADO recordset source: trying to join a table to a Select statement
    By stefankemp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2012, 11:18 AM
  6. 2 vba join together
    By jinvictor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2006, 07:10 AM
  7. What's wrong with this SQL join statement????
    By Hexman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2005, 12:50 AM

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