+ Reply to Thread
Results 1 to 3 of 3

Method to read contents of .dat file?

  1. #1
    Registered User
    Join Date
    09-14-2014
    Location
    South Carolina
    MS-Off Ver
    Office 2013
    Posts
    9

    Method to read contents of .dat file?

    What mechanism would I be able to read contents of a .dat file when it is created then apply to a database and delete or archive dat file?
    Dat file Is created automatically and placed in a folder on network drive, however data grows at an exponential rate as a file is created every 20 minutes.
    I have a excel sheet that extracts data but runs forever once data set gets too big.
    I would envision this being collated in access then exported to my excel sheet.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: Method to read contents of .dat file?

    I would have the .dat file linked to access as a text TABLE.
    then a query to append the data from the dat file to a table.
    then move the file to an archive, to know it was imported.
    put all this in a macro for a 1 click solution.

    The macro:
    runs the append query
    runs code via RUNCODE MoveMyfile()

    done.

  3. #3
    Registered User
    Join Date
    09-14-2014
    Location
    South Carolina
    MS-Off Ver
    Office 2013
    Posts
    9

    Re: Method to read contents of .dat file?

    Ok,
    On this project just went way outside my scope of knowledge. I just learning VBA for excel and am clueless on access, the file name of the DAT file is never the same. They come from different machine tools taking sample measurements. Thanks man at least i know what direction to direct whoever is going to program this monster.
    I've been told running all this through a SQL server then depositing in database is access is best and fastest way to query the data parameters.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Checking to see if a file has been opened in Read/Write or Read Only
    By brokenbiscuits in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-13-2014, 09:16 AM
  2. Read-only file on server. How many people can read at once?
    By Xx7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2013, 12:10 AM
  3. Using ADO to read closed file does not read formulas
    By treyr in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-09-2010, 12:26 PM
  4. [SOLVED] Open a file and read contents
    By Striker in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-27-2006, 03:20 AM
  5. How can a file be converted from Read-Only to Read/Write
    By Jim in Apopka in forum Excel General
    Replies: 2
    Last Post: 11-19-2005, 01:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1