http://qs321.pair.com?node_id=729824


in reply to Re^2: Perl DBI + Access bind issues
in thread Perl DBI + Access bind issues

I can export each table, but I haven't found a way to automate it. It's pretty tedious to select every table one at a time and export.

Is there an Access trick I'm missing?

--
I used to drive a Heisenbergmobile, but every time I looked at the speedometer, I got lost.

Replies are listed 'Best First'.
Re^4: Perl DBI + Access bind issues
by pfaut (Priest) on Dec 12, 2008 at 02:26 UTC

    Yes. You can script Access using Visual Basic. I wrote a function that exports all of the tables I'm interested in but I don't remember the calls to do it. I can look it up when I get to work tomorrow morning.

    90% of every Perl application is already written.
    dragonchild

      I just looked up how I did this and there's no need for VB. It can be done using a macro in Access. I created a macro called ExportTables. For each table to be exported I added a 'TransferText' action. Set transfer type to 'Export Delimited' and specify the table and file names. If you want the first row of the CSV file to contain the column names set 'Has Field Names' to 'Yes'. After adding an action for each table you can execute the macro and it should create CSV files for the tables you entered.

      90% of every Perl application is already written.
      dragonchild