Access Developer 34
File System Object Lessons 3-5, Lots More!
Today's class continues working with the File System Object. We'll do a lot with copying files and folders (including entire folders along with their subfolders). We will learn how to read and write files. We'll make a customer data change file that we can email to the customer, have them make changes, and then import those changes back into the database. We'll see how to send email with Outlook.
In Lesson 1, we will continue working with the File System Object. We will learn about CopyFolder, MoveFolder, DeleteFolder, listing all files in a folder, CopyFile, CopyFile with wildcards, CopyFile with a loop of the Files collection, and how to copy files based on their properties (files of a certain size, modified date, etc.).
In Lesson 2, we will learn how to write text files using the TextStream object. We will learn about CreateTextFile, Write, WriteLine, and WriteBlankLines. We will create a customer text file with all of the information we want to send to the customer for review and edit (name, address, phone, etc.) We will learn two ways to send email using Outlook (SendObject and Outlook.Application) so we can send the customer text file as an attachment. We'll convert the email code from Early to Late Binding.
In Lesson 3, we will learn how to read text files. We'll learn about OpenTextFile, Read, ReadLine, and ReadAll. We'll learn to tell when were AtEndOfLine and AtEndOfStream (the file). We will read in the changes that the customer made to their data file, update their customer record, and track changes in a change log.
Enroll now so that you can watch these lessons, learn with us, post questions, and more.
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.
Subscribe to Access Developer 34
Get notifications when this page is updated