Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
 
Home   Courses   Seminars   Templates   Help   TechHelp   Forums   Contact   Join   Order   Logon  
 
Home > Courses > Access > Developer > D31 > < D30 | D32 >
 
Access Developer 31

VB File, Folder Nav, Copy Files, Compact BEs


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

Welcome

Today's class continues our work with Classic VB File Handling. We will start out learning how to navigate between files and folders, select files with the file picker, launch files with ShellEx, copy files, create folders, and more. Then we'll learn how to automatically compact multiple back-end files. Lots to do in this class!

Resources

Topics Covered

In Lesson 1, we start off with VB file and folder navigation, creating your own file browser, launching applications with the ShellExecute function, and using the standard Windows file picker.

In Lesson 2, we're going to learn how to copy files. We'll learn the FileCopy command. We'll create a central Images folder on your database server. We'll learn how to check to see if a file and folder exists. We'll create a folder with the MkDir command. We'll read the user's Windows system environment variables so we can determine where their User folder is and set that as the default file browse location. We'll store the last folder browsed in a TempVars variable. We'll learn how to separate filename and folder from the full path. We'll see how to get the length of a file with FileLen to check and make sure that the file copied 100% completely.

In Lesson 3, we will delete the old profile picture if a new one is selected with the Kill command. We'll ask the user first if it's OK before continuing, of course. We're not animals. We will verify the file has been deleted. We will timestamp new files as they are copied so that we don't run into duplicate filenames. We'll discuss error handling ramifications and best practices with File I/O functions. We'll see how to rename a file. I'll also talk about ChDrive and ChDir, although I almost never use them.

In Lesson 4, we will design a form to auto-compact multiple backend ACCDB files. If you have a split database and have multiple backend linked files, you'll be able to compact them all on a regular basis (like once a week) with a single click of a button. The database will allow you to pick your BE folder, loop thru the ACCDB files in that folder with a DIR, backup each file with a timestamp, compact it, and verify everything was done correctly. This one is a real time saver if, like me, you've got a dozen or so BE files.

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. Thanks.

 

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:

10/10/2021Copy Text from Field
10/10/2021Access for Free
10/9/2021Birthdays
10/8/2021Label Resize
10/2/2021Criticisms of Access
10/1/2021Access Developer 32
10/1/2021Groups
9/29/2021DMin
9/28/2021Track Log On
9/26/2021Sliders
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
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
Keywords: access developer 31 file i/o, file input output, navigate files folders, file picker, shellex, copy file, create folder, compact multiple backends, filecopy, file exists, mkdir, environ, tempvars, filelen, kill  Page Tag: whatsnew  PermaLink