Closed Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    11-27-2009
    Location
    Cedar Creek (Austin), Texas
    MS-Off Ver
    Excel 2003 & Excel 2007
    Posts
    45

    Help with Importing Text file into Access

    Hi All,

    I have a large text file that is generated daily and want to import into MS Access via a macro or code. The issue is not all the segments are the same number of lines or they may have mutli message lines. The names with colon : after them I want to be field names in the table which I wish the text file to import into. Please, I am looking for assistance with this.

    I have attached sample data of the text dump, and the name of the file is as you see but different date on the end. At the very end of the text file you will see the desired output after running the macro or code and then entered into table called TMessages

    Also every new message begins with the dotted line and the date and time at the end.

    I hope this makes sense to those offering assistance, if you have questions please ask them.

    James Niven
    Austin, Texas
    Attached Files Attached Files
    Last edited by bigroo1958; 01-12-2010 at 10:19 AM. Reason: Message moved to Excel Programming

  2. #2
    Registered User
    Join Date
    11-27-2009
    Location
    Cedar Creek (Austin), Texas
    MS-Off Ver
    Excel 2003 & Excel 2007
    Posts
    45

    Re: Help with Importing Text file into Access

    Here is the correct text file example, sorry, I forgot to save.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-27-2009
    Location
    Cedar Creek (Austin), Texas
    MS-Off Ver
    Excel 2003 & Excel 2007
    Posts
    45

    Re: Help with Importing Text file into Access

    Hi all,

    I am thinking maybe I should work on the file in Excel and then import into Access, so maybe this post/message is in the wrong place on the forum. How does one move this to Excel Programming or do you just post a new message?

    Thanks

    James Niven

  4. #4
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,379

    Re: Help with Importing Text file into Access

    see: http://www.excelforum.com/excel-prog...for-excel.html

    James, going forward, if you need a thread moved PM a Mod and they will do this for you (if appropriate of course)

Thread Information

Users Browsing this Thread

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

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.2.0