Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Courses > Access > Developer > D33 > < D32 | D34 >
Access Developer 33

Relink Backend Files, File System Object 1 & 2


 S  M  L  XL  FS  |  Slo  Reg  Fast  2x  |  Bookmark Buy Now

Welcome

Today's class begins with automatically relinking back-end files (with VBA, of course). We'll start out reviewing the Linked Table Manager, and then we'll learn how to determine whether or not our back-end file needs to be relinked. If so, we will relink a single back-end file using VBA. Then we'll learn how to relink multiple back-end files. I'll also cover how to relink to ODBC sources including SQL Server (even online databases).

Then, we'll learn about the File System Object to work with files and folders. We started learning about File I/O in Developer 30. Today we'll continue with a more powerful method. We'll learn about Early v. Late Binding of objects, how to create a folder, loop to create multiple folders, determine the size of a folder (and subfolders/files) and how to read and change the properties and attributes of folders and files.

Resources

Topics Covered

In Lesson 1, we will learn how to use the Linked Table Manager to relink your tables just in case your back-end database file has been moved or renamed. This and lesson 2 are free bonus lessons which don't count towards the hour for this class. Yes, we have covered this material before in earlier lessons, but it's a good review before lessons 2 and 3 which get into more advanced material.

In Lesson 2, we will learn how to use VBA to automatically relink to the back-end file. The database will recognize that the tables are missing, prompt you for the new back-end file location, and then relink it for you. We will use the TableDefs collection and my PickFile function. This solution will work for a single back-end file.

In Lesson 3, we will learn how to automatically relink to multiple back-end files. We'll loop through all of the tables in the database and see if each table is linked. If not, we will prompt the user for the location, relink it, and continue on to the next table. 

In Lesson 4, we will learn how to automatically relink ODBC tables, including those linked to SQL Server (both local and online databases).

In Lesson 5, we will learn how to work with the File System Object. We'll talk about Early vs. Late Binding, the Windows Script Host, how to find the database's folder with CurrentProject.Path, how to create a folder, and how to loop to create multiple subfolders. 

In Lesson 6, we are continuing with the File System Object. We'll learn how to use GetFolder to create a folder object that we can work with to get it's properties and collections. We'll learn about the SubFolders collection, file and folder properties, how to determine the size of a folder (and all of its subfolders and files), read the attributes of a file/folder, and how to change those attributes.

Enroll Today

Enroll now so that you can watch these lessons, learn with us, post questions, and more.

Questions?

Please feel free to post your questions or comments below. If you are not sure as to whether or not this product will meet your needs, I'd rather help you before you buy it. Remember, all sales are final. Thank you.

 

Comments for Access Developer 33
 
Age Subject From
5 monthsAnother Great LessonSandra Truax
17 monthsConst in Default ValueEduardo Benaim

 

Start a NEW Conversation
 
Only students may post on this page. Click here for more information on how you can set up an account. If you are a student, please Log On first. Non-students may only post in the Visitor Forum.
 
Subscribe
Subscribe to Access Developer 33
Get notifications when this page is updated
 
 
 
 

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 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 10/11/2024 4:47:09 PM. PLT: 1s
Keywords: access developer 33 relinking back end files, file system object, fso, early late binding, createfolder, size of folder, properties, attributes LinkedTableManager RelinkFiles RuntimeError3024 RelinkSingleBackendFile PromptUser ForLocation TableDef RelinkM  Page Tag: whatsnew  PermaLink  Microsoft Access Developer 33