Solved

Use ADO to read Random Files

Posted on 2014-01-27
2
219 Views
Last Modified: 2014-01-28
I know that ADO could be used to read text files (comma delimited or tabbed)

My question is can ADO be used to read Random Files (saved in text form) containing User Defined Types

Usually it is read as follows :

   Dim rec as RandomRecord

   Open "C:\RandomFile.txt For Random As #1 Len = Len(Rec)
   
   nRecords = LOF(1) / Len(Rec)
   
   For i = 1 To nRecords
   
      Get #1, i, Rec

   Next i

Thank you
0
Comment
Question by:rohaya
2 Comments
 
LVL 48

Accepted Solution

by:
Rgonzo1971 earned 500 total points
Comment Utility
0
 

Author Closing Comment

by:rohaya
Comment Utility
Excellent link. Addresses my question. Thanks.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now