Solved

Use ADO to read Random Files

Posted on 2014-01-27
2
224 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 50

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 39814329
0
 

Author Closing Comment

by:rohaya
ID: 39814747
Excellent link. Addresses my question. Thanks.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
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…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

756 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