Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2011
    Posts
    1

    Import from .CSV or .TXT

    Hello,



    I am working on a project which for some task has to deal with a legacy application accepting input only in the form of .MAT (Microsoft Access Table) files. I haven't worked with MS Access in the past.

    The code that I have written provides output in the form of a .CSV or .TXT (tab-delimited file) and this becomes input to the legacy application which needs input in the form of a .MAT file only. Is there a way to convert .CSV/.TXT file in .MAT format? In the longer run, I will have to perform this step for a few thousand iterations, so any pointers to sample scripts or documentation that could simplify this case (a simple .CSV/.TXT to .MAT conversion) would be of great help.

    Thank you for reading this post.

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    what does this have to do with Access? It looks like it doesn't, at all.

    As for the extension change, have you tried manually changing the extension of one file first, to see if it works fine like that? and if it does, you can use VBA's NAME function to rename files through the file system as many times as you want with a loop.

    but again, where does Access fit in?

  3. #3
    Rawb is offline Expert
    Windows XP Access 2000
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    My understanding of MAT files (which is pretty limited) is that you can't do what you're asking.

    A MAT file is nothing more than a Shortcut (like a Desktop Shortcut) pointing to a Table inside an MDB file. It doesn't contain of the Table's data.

    In fact, you can open MAT files in Notepad and get readable info!

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

  5. #5
    thhui is offline Competent Performer
    Windows XP Access 2002
    Join Date
    Feb 2009
    Posts
    235
    If MAT is just an access table shortcut,
    then what the output really required is in fact the access data table.

    You just import the csv or txt into the access table and then create the MAT shortcut in MS Access 2010 by clicking and dragging it to desktop.

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

Similar Threads

  1. Excel import using VBA
    By catguy in forum Programming
    Replies: 6
    Last Post: 08-25-2010, 09:58 AM
  2. Excel Import
    By jesleon in forum Import/Export Data
    Replies: 4
    Last Post: 08-24-2010, 07:32 AM
  3. CSV vs XLS Import
    By Betty Boop in forum Import/Export Data
    Replies: 1
    Last Post: 10-27-2009, 07:10 AM
  4. How would I import something like this?
    By Insyderznf in forum Import/Export Data
    Replies: 13
    Last Post: 08-10-2009, 05:18 PM
  5. Import a .sql file?
    By Alan in forum Import/Export Data
    Replies: 1
    Last Post: 06-03-2009, 07:52 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