Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
 
 
Access Search Seminar
By Richard Rost   Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   10 years ago


Back to Access Search Seminar
 

Inner Join Upload Images   Link  
Joseph O'Malley 
14 months ago
Hi I am just having a few issues joining my tables when writing the SQL = portion of the code. I am trying to inner join 3 tables which correspond to the data I want in the list box.  

Any help would be greatly appreciated.

SQL= Select ..... 'the fields from the 3 tables I want'
From (Legal INNER JOIN Record ON Legal.LegalID) INNER JOIN [TESTING] ON Record.Scenario Where ' wh

DoCmd.OpenForm "SearchForm"
SResults.RowSource = SQL
Joseph O'Malley
14 months ago
Right now the whole "From"  portion is highlighted in red with some kind of error
Adam Schwanz
14 months ago
I haven't done much with the inner joins so may be way off, but this doesn't look right to me: Where ' wh

I think you need a "&" there.
    SQL = "SELECT PartID, PartNum, Vendor FROM PartsT WHERE " & Wh
    PartList.RowSource = SQL
Richard Rost
14 months ago
A join should have an equality in it:

SELECT CustomerT.CustomerID, OrderT.OrderID FROM CustomerT INNER JOIN OrderT WHERE CustomerT.CustomerID = OrderT.CustomerID

See SQL Seminar

This thread is now closed. If you wish to comment, start a NEW discussion, below.
 


Back to Access Search Seminar
 

Start a NEW Conversation
 
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.
 
Subscribe
 

You may want to read these articles from the 599CD News:

5/16/2022Referential Integrity
5/15/2022Invoicing Member Discussion
5/13/2022Multivalued
5/12/2022Number Field Size
5/11/2022Create Word Document
5/11/2022Export to Word
5/10/2022On Click Event Timing
5/9/2022Invalid Use of Null
5/7/2022Event Handler
5/6/2022Database Title & Icon
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn