Results 1 to 9 of 9

Inner Join Statement (A table & a query)

Threaded View

  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.

    XyzQuery = "S e l e c t Xyz_field1, Xyz_field2 f  r o m Table_xyz"
    
    AbcQuery = "S e l e c t Abc_field1, Abc_field2 F r o m Table_abc W h  e r e Abc_field1 = " & _
            TextBoxfield1.Value & " I n n e r J o i n " & XyzQuery & " On Table_abc.Abc_field1 = XyzQuery.Xyz_field1   O R D E R   B Y Abc_field1  A S C, Abc_field2   D E S C"
    Attached Images Attached Images
    Last edited by VAer; 02-21-2017 at 02:58 PM.

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. [SOLVED] 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