01. Navigating Files & Folders (38:52)
File Management with Access
File Picker (PickFile)
Early vs. Late Binding
Use Numbers not Constants
Application.FileDialog
CurrentProject.Path
Dir Function
Loop Thru Files in Folder
vbNormal, vbDirectory
GetAttr Function
Move Thru Folders
InStrRev Function
ShellExecute to Open Files
FileLen Function
Format #,##0 Thousands Separator
02. Copying Files, Part 1 (32:34)
Learn the FileCopy Command
Browse and Pick File
Copy to Central Images Folder
Display on Customer Record
Add MyPicture Field to CustomerT
TempVars("PictureFolder") on Startup
Make Sure Folder Exists
FileExists, FolderExists Functions
Create Folder with MkDir
Button to Browse for Picture
Open a Command Prompt CMD
Windows Environment Variables SET
Environ("USERPROFILE")
Remember Last Browse Folder Location
FolderNameFromPath
FileNameFromPath
TempVars("LastBrowseFolder")
FileCopy Command
Put Image Control on Form
Check Size of Files
FileLen Function
03. Copying Files, Part 2 (20:18)
Delete Old Profile Picture if Exists
Kill Command
Verify that File was Deleted
Timestamp Filenames
File I/O Error Handling Concerns
Rename a File with Name Command
ChDrive, ChDir
04. Compact & Repair Backend Files (45:54)
Create Backend ACCDB Folder
Copy BE Files
Create BEFolder Field
Create PickFolder Function
Global Settings Table for BE Folder
Make FileList List Box
Loop Thru ACCDB Files in BE Folder
Use DIR for Loop
Load into FileList
Display FileLen in FileList
Loop Thru FileList
Create DoCompact Sub
Application.CompactRepair
DBEngine.CompactDatabase
Make Sure Backup Folder Exists
Copy Backups with DateTime Stamp
Perform Compact
Verify Dest File Exists
Delete Old File, Rename New One
Add Error Handling