|
-
Jun 4th, 2005, 10:15 AM
#1
Thread Starter
Member
SQL Query in Access
I have this sql query:
SELECT Sum(Fees_Paid.Student_Fee_Paid) AS SumOfStudent_Fee_Paid
FROM Fees_Paid LEFT JOIN (Camp_Session_And_Date INNER JOIN Camp_Registration ON Camp_Session_And_Date.Camp_Session_ID = Camp_Registration.Camp_Session_ID) ON Fees_Paid.Payment_ID = Camp_Registration.Payment_ID
WHERE (((Camp_Session_And_Date.Camp_Year)=[Year]))
GROUP BY Camp_Session_And_Date.Camp_Year;
It is telling me that I have ambigious joins and that I need to break it up into 2 select statements within the same query...I tried breaking it up but can't seem to get around all of the errors when I do. How can I break this up to where it will give me a errorless response.
HELP!
-
Jun 4th, 2005, 11:51 AM
#2
Re: SQL Query in Access
Even though this is in Access VBA it would get a better response in the Database Forum.
Probably just post a link to this thread so the responses will all be in one thread. 
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jun 4th, 2005, 01:59 PM
#3
Re: SQL Query in Access
LEFT JOIN TABLENAME ON (condition) is the syntax
not...
LEFT JOIN (condition)
-
Jun 5th, 2005, 08:41 AM
#4
Thread Starter
Member
Re: SQL Query in Access
Can you rewrite that SQL statement to fit what you are saying...i'm not sure if I fully get the concept...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|