Results 1 to 2 of 2
  1. #1
    WSS_Login is offline Novice
    Windows 10 Access 2003
    Join Date
    May 2020
    Posts
    1

    Post Import ^ Delimited TXT file and then manipulate columns

    Hello,
    I have a caret delimited file that contains 5 columns of data ("A")
    I have used Access's Function "Get External Data" Import" from the file menu.
    Going through the prompts, I am able to successfully bring the data in and view on screen.
    A
    Data A Data B Data C Data D Data E
    Field 1 Field 2 Field 3 Field 4 Field 5

    What I am trying to accomplish is this....
    I currently have another separate table that I created before and it appears as shown below
    B
    Field 1 Field 2 Field 3 Field 4 Field 5 Field 6 Field 7 Field 8

    I need to get what imported in "A" and bring it over to "B" with some exceptions.
    Below is the "Data" (1st row) that I need to re-route or bring over to my existing Table (2nd row).

    Data D Data C Data A Data E
    Data B
    Field 1 Field 2 Field 3 Field 4 Field 5 Field 6 Field 7 Field 8




    Is this possible? If so, how can I accomplish it? I have read through a few books, Googled for hours and just cannot seem to make it work.
    Maybe I am going about it wrong, but I think Tables is how I am to accomplish this. I also tried Relationship, but that did not work...at least the way I did it.
    If this is not the best method, can someone also direct me to the proper way of handling this data move/linking?

    I greatly appreciate the help and assistance.
    Best Regards,
    John

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Save the file to a generic filename like c:\temp\File2import.txt
    link the file as an external table (with Spec name)
    make an append query to put the data in the correct fields,
    make a macro to run the query.

    then the steps will be:
    1. Save new CSV to the generic file
    2. Run macro.
    done

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 09-08-2014, 10:06 AM
  2. manipulate file before import
    By tagteam in forum Programming
    Replies: 3
    Last Post: 06-14-2013, 12:45 PM
  3. Replies: 7
    Last Post: 11-20-2012, 05:08 PM
  4. Replies: 5
    Last Post: 12-01-2011, 05:38 PM
  5. Replies: 0
    Last Post: 04-29-2009, 04:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums