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 > D30 > < D29 | D31 >
 
Access Developer 30

Classic VB File I/O. Reading & Writing Text Files


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

Welcome

Today's class is all about Classic VB File Input & Output. We will learn how to read and write text files. There are a lot of reasons why you would want to learn how to manually work with file I/O routines with your Access database, and I'll spend some time going over them in Lesson 1.

Resources

Topics Covered

In Lesson 1, we will get an introduction to File Input/Output (File I/O). We're going to learn why you want to learn this stuff. We will learn about the two different types of file I/O: Classic VB and File System Object (FSO) which is newer. Then we'll learn the pros and cons of each.

Lesson 2 is a free bonus lesson. It's one of my TechHelp videos showing how to import data from Microsoft Excel CSV files and fixed width text files. It's a good foundation for what's coming next.

Lesson 3 is another free bonus lesson from my TechHelp videos. This one the members-only Extended Cut for the previous video where I show you how to import directly using VBA so it's a preview of what's going to be coming up in the rest of today's class. We're going to learn how to import a fixed-width file over 2 GB in size, which is larger than the Access maximum for a single database file or table.

In Lesson 4, we're going to start from the beginning with Classic VB File I/O. We're going to learn how to write out a text file. We'll learn the Open, Output, Print, Close, Append commands. We'll talk about what folders you can write to, what folders you have access to write to. CurrentProject.Path gets the folder that the database is in. FreeFile gives you an open file handle. How to use the Shell Command to open up Notepad to view your text file as soon as it's exported. We'll learn how to loop through the controls on a form so we can export all of the text box values from one form. Export customer data, customer list, and an invoice with all of the line item details and order total. 

In Lesson 5, we will learn how to read text files. We will open a file for input, read in lines of text with the Line Input command. Read all lines to the EOF (End of File). We'll use a recordset to add values to a table from the file input. We will read in customer data and survey responses. I'll show you how to copy and paste a customer's survey response data into a field on a form, export that data to a file, and the read in and parse the data one line at a time.

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:

9/22/2021Access DevNet Testimonials
9/20/2021Letter Writer
9/19/2021Multi Field Combo
9/19/2021Project Management
9/17/2021Overlapping Windows
9/16/2021Inventory
9/10/2021Benefits of Access
9/10/2021Access on a Phone
9/5/2021Prevent Deletion
9/4/2021Booklet Template
 

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 30  Page Tag: whatsnew  PermaLink