Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8513961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:43:49+00:00 2026-06-11T04:43:49+00:00

I am trying to troubleshoot someone else’s MS Access query and keep getting an

  • 0

I am trying to troubleshoot someone else’s MS Access query and keep getting an invalid operation error. The Help doesn’t seem to apply as I am just running a query. It all works as INNER JOINS but when I switch back to the LEFT JOIN the error.


SELECT *
 FROM ((((orders 
 INNER JOIN orders_customers ON orders.CUST_ORDER_ID = orders_customers.ID) 
 LEFT JOIN quoted_theory ON orders.PART_ID = quoted_theory.PART_ID) 
 LEFT JOIN conversions ON orders.PART_ID = conversions.PART_ID) 
 LEFT JOIN dbo_WO_Header ON orders.CUST_ORDER_ID = dbo_WO_Header.PPC_Number) 
 INNER JOIN lines_qry ON orders.CUST_ORDER_ID = lines_qry.WORKORDER_BASE_ID

I can get one level of LEFT JOIN, but each time I add a second LEFT JOIN the error pops up.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T04:43:50+00:00Added an answer on June 11, 2026 at 4:43 am

    Access’ db engine frequently balks when mixing INNER and LEFT joins. If that query works without the last inner join …

    SELECT *
    FROM
        (((orders INNER JOIN orders_customers
        ON orders.CUST_ORDER_ID = orders_customers.ID)
        LEFT JOIN quoted_theory
        ON orders.PART_ID = quoted_theory.PART_ID)
        LEFT JOIN conversions
        ON orders.PART_ID = conversions.PART_ID)
        LEFT JOIN dbo_WO_Header
        ON orders.CUST_ORDER_ID = dbo_WO_Header.PPC_Number
    

    … then you could try that part as a subquery and inner join lines_qry to the subquery. It might get past the error.

    SELECT *
    FROM
        (
            SELECT *
            FROM
                (((orders INNER JOIN orders_customers
                ON orders.CUST_ORDER_ID = orders_customers.ID)
                LEFT JOIN quoted_theory
                ON orders.PART_ID = quoted_theory.PART_ID)
                LEFT JOIN conversions
                ON orders.PART_ID = conversions.PART_ID)
                LEFT JOIN dbo_WO_Header
                ON orders.CUST_ORDER_ID = dbo_WO_Header.PPC_Number
        ) AS sub
        INNER JOIN lines_qry
        ON sub.CUST_ORDER_ID = lines_qry.WORKORDER_BASE_ID
    

    If any other table besides orders includes a field named CUST_ORDER_ID, you will need something other than SELECT * within the subquery to avoid ambiguity.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to troubleshoot this code and I'm getting this error and I do
I'm trying to troubleshoot a .NET 2.0 error with Outlook Web Access on a
I'm trying to help a friend troubleshoot connection problems with an AS/400. He'd like
I am having this odd error with my code. I am trying to troubleshoot
I am trying to troubleshoot an MS Access XP database and the first thing
I'm trying to troubleshoot why a release build doesn't work on the device but
I have inherited a poorly designed Access 2002 database. I am trying to troubleshoot
While trying to troubleshoot a problem I'm having with a project, I noticed that
Im trying to troubleshoot my first iphone app and Ive run into a propblem
I've been trying to troubleshoot the navigation on my website. (sequoiawaste.com) The problem arises

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.