Solved

SQL Join Syntax in Access

Posted on 2010-08-26
3
223 Views
Last Modified: 2012-05-10
I am getting a join syntax error and I have no idea why

SELECT dbo_ApSupplier.Supplier, dbo_ApSupplier.SupplierName, dbo_ApInvoice.Invoice, dbo_ApInvoice.InvoiceDate, dbo_ApInvoice.DueDate, dbo_ApInvoice.OrigInvValue, SubQryPymt.TtlPymt, [dbo_ApInvoice]![OrigInvValue]+[SubQryPymt]![TtlPymt] AS EndingBal
FROM (dbo_ApSupplier INNER JOIN ([SubQryPymt] INNER JOIN dbo_ApInvoice ON [SubQryPymt].Invoice = dbo_ApInvoice.Invoice) ON (dbo_ApSupplier.Supplier = [SubQryPymt].Supplier) AND (dbo_ApSupplier.Supplier = dbo_ApInvoice.Supplier);
0
Comment
Question by:avalonwgi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 33532727
you might want to add more brackets
SELECT dbo_ApSupplier.Supplier, dbo_ApSupplier.SupplierName, dbo_ApInvoice.Invoice, dbo_ApInvoice.InvoiceDate, dbo_ApInvoice.DueDate, dbo_ApInvoice.OrigInvValue, SubQryPymt.TtlPymt, [dbo_ApInvoice]![OrigInvValue]+[SubQryPymt]![TtlPymt] AS EndingBal
FROM dbo_ApSupplier INNER JOIN ([SubQryPymt] INNER JOIN dbo_ApInvoice ON ([SubQryPymt].Invoice = dbo_ApInvoice.Invoice) ) ON (dbo_ApSupplier.Supplier = ([SubQryPymt].Supplier) AND (dbo_ApSupplier.Supplier = dbo_ApInvoice.Supplier);

Open in new window

0
 

Author Comment

by:avalonwgi
ID: 33533795
Hi Angellll, I tried that and still the same error.
0
 

Author Closing Comment

by:avalonwgi
ID: 33533831
I got it...there was an extra bracket set not needed.  Thanks.
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question