export from ms access

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • foker500
    New Member
    • Jun 2006
    • 4

    export from ms access

    I'm trying to export a table from ms access to a .dbf. I know this is probably really easy but I can't figure it out??? Any direction would be greatly appreciated.

    Windows XP
    Pythonwin 2.1
  • jlm699
    Contributor
    • Jul 2007
    • 314

    #2
    Originally posted by foker500
    I'm trying to export a table from ms access to a .dbf. I know this is probably really easy but I can't figure it out??? Any direction would be greatly appreciated.

    Windows XP
    Pythonwin 2.1

    What? Is this a python question or are you just in Microsoft Access trying to save a table in a certain format?

    Comment

    • foker500
      New Member
      • Jun 2006
      • 4

      #3
      Originally posted by jlm699
      What? Is this a python question or are you just in Microsoft Access trying to save a table in a certain format?
      I'm trying to import several .csv files to ms access, manipulate the table schema, then export to .dbf. I'm trying to automate this using python and have everything figure out except for the 'export' to .dbf. Sorry, did mean to be so vague.

      Comment

      • jlm699
        Contributor
        • Jul 2007
        • 314

        #4
        Originally posted by foker500
        I'm trying to import several .csv files to ms access, manipulate the table schema, then export to .dbf. I'm trying to automate this using python and have everything figure out except for the 'export' to .dbf. Sorry, did mean to be so vague.
        Can you give a quick snippet of your code where you want to save?

        Comment

        • Cuaracao
          New Member
          • Mar 2008
          • 2

          #5
          Hi
          Try like this:

          'DoCmd.OpenTabl e "tblImport"
          'DoCmd.Transfer Database acExport, "dBASE IV", strOutputDir,ac Table,"sel_TblI mport", strDbfName & ".dbf", False
          '
          DoCmd.Close acTable, "tblImport"

          =============== =============== =============== ===== ======

          Code2:

          DoCmd.TransferT ext acExportDelim, sImportSpecific ation, "sel_TblImport" , strOutputDir & strDbfName & ".dbf", , , 65001

          Comment

          Working...