Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Search Form
Robert Wilson 
   
3 years ago
I have an asset tracking database I created and I am trying to make a searchable form.  The form has three main tables; Manufacturers, Products, and Assets.  I used the example from the Tech Help Video "Search Form 2.0" and used the VBA code to make a searchable form.

The issue I am having is that I have data in my form from three different tables.  Data from the Asset table always appears.  However, data from the other two tables shows up as "NAME?" in the form.  I tried an INNER JOIN and then I can get data from one of the other two tables, but I can never get data from all three tables to appear in the search form.  Is there a trick to using an INNER JOIN, for multiple tables?  Or is that not the proper command to use for searching forms that have data from multiple tables?

Thanks for any advice/response...

Rob
Alex Hedley  @Reply  
           
3 years ago
What's the structure and relationships of your tables?
Robert Wilson OP  @Reply  
   
3 years ago
Alex,
Thanks for the response...turns out I was able to resolve the situation today.  I needed to add parenthesis into the command.  I have the code at work, but will bring it home and post the solution in case it might be beneficial to others...
Robert Wilson OP  @Reply  
   
3 years ago
The code I added that resolved the issues was:

SQL = "Select * FROM (tblAssets INNER JOIN tblProducts ON tblAsssets.ProductID=tblProducts.ProductID) INNER JOIN tblManufacturers ON tblAssets.ManufacturerID=tblManufacturers.ManufacturerID"

The prenethesis resolved the problem I was having where I was seeing NAME? in some of the form fields.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

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
PCResale.NET
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
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 4/30/2026 5:13:10 PM. PLT: 1s