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 SQL Server Lessons    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Linking tables to SQL Server
Jennifer Neighbors 
     
2 years ago
In lesson 5, Richard tells us how to link each table on the Server. I use this when my database starts. At the end of this procedure, a message box informs the user that connecting to the server was successful, and the logon form loads. Perhaps that won't always be the case, however. I wonder how to address the situation where the linking was unsuccessful. How do I know it failed? I wonder if a solution is to count the number of linked tables when the procedure is finished; if that count is less than it should be, a failure occurred. Is there a better method? The only cause for a failure I can think of is if the internet connection is broken or slow. Could there be other causes?
Kevin Yip  @Reply  
     
2 years ago
You can check if a table is successfully linked by opening a recordset to retrieve a few records from the table, and catch the error, if any.  Many things could cause a failed link (bad connection string, bad network, deleted or renamed table, etc.).  So it could be tough to check for the exact error(s) with VBA code.
Richard Rost  @Reply  
          
2 years ago
That's exactly what I do. I read a known customer ID and make sure the FirstName is what I expect.

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

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:28:52 PM. PLT: 1s