Results 1 to 10 of 10
  1. #1
    newuser is offline Novice
    Windows Vista Access 2007
    Join Date
    Nov 2010
    Posts
    3

    Perform an operation on multiple files.

    All,

    I have 600+ .mdb files and I am interested in 1 table within each file. I would like to extract that table from each file to a simple .txt file so that I may create a program which reads this data (programmed in a language of my choosing). I know how to do this for an individual file, but is there a way to script this such that Access knows which directory to look in, and will perform this operation to all files thus creating 600+ .txt files? This would be a huge help, thank you!!!

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    well, you could possibly use the 'opendatabase' method in vba to open all 600 and close them one at a time. an export function would be best to throw the tables out from each db, but with that large number, there is a huge risk of corruption at the very least.

    if this was even possible though, breakpoints would absolutely necessary every 5 files, or maybe every 10 because the memory would get so corrupted and jumbled based on the speed of code execution that anything could happen. your system might even crash. that's IMO of course.

  3. #3
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    another thinking:
    1 find all mdb files by DIR if you do have the list yet.
    2 link the table to currentdb and export one by one

    I have the codes to do all these because I just finished updating my hundred's of mdb files. Please see my attachment if interested.

  4. #4
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    ...how does one have 600+ .mdb's to begin with?

  5. #5
    newuser is offline Novice
    Windows Vista Access 2007
    Join Date
    Nov 2010
    Posts
    3
    2 years worth of data.

  6. #6
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    I've got about 50 years' worth in 1 database. 600+ is just a staggering number.

  7. #7
    newuser is offline Novice
    Windows Vista Access 2007
    Join Date
    Nov 2010
    Posts
    3
    thus my desire to somehow script within windows.

  8. #8
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Good luck with it. I'd like to know how that goes. I don't envy your position right now.

  9. #9
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by TheShabz View Post
    ...how does one have 600+ .mdb's to begin with?
    been on my mind since I first clicked this thread. link.

  10. #10
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    I have hundreds mdbs too.
    every month I create 5-10 new ones, that's almost 100 a year.
    now and then I backup the databases, 50 more in a year,
    ...

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

Similar Threads

  1. output to multiple pdf files
    By geoffishere in forum Reports
    Replies: 1
    Last Post: 07-04-2010, 03:39 PM
  2. Replies: 2
    Last Post: 05-25-2010, 02:45 PM
  3. Replies: 2
    Last Post: 11-18-2009, 06:49 PM
  4. Importing multiple files at once
    By NoiCe in forum Import/Export Data
    Replies: 1
    Last Post: 04-01-2009, 10:10 AM
  5. Import multiple dbf files into existing table?
    By sbg2 in forum Import/Export Data
    Replies: 0
    Last Post: 06-12-2006, 02:06 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