Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. DoCmd.OutputTo assistance needed...

DoCmd.OutputTo assistance needed...

Scheduled Pinned Locked Moved Database
saleshelplounge
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    new_phoenix
    wrote on last edited by
    #1

    Hi, guys. I need some help with the DoCmd.OutputTo method in MS Access. I would like to export the file to a .CSV file but the only options that I have are as follows: AcFormat can be one of these AcFormat constants. acFormatASP acFormatDAP acFormatHTML acFormatIIS acFormatRTF acFormatSNP acFormatTXT acFormatXLS The code for DoCmd.OutputTo is as follows:

    DoCmd.OutputTo acOutputTable, "tblInputFile", \_
        acFormatTXT, "C:\\test\\output.csv", True
    

    I tried to use the acFormatTXT option to export to the .CSV file. I need the result to be a comma delimited list, but it comes out like this:

    --------------------------------------------------------------
    | USA | WFTE | SUPPORT | Global | GLOBAL | Facilities & Real | 4 | 57AU |

    | USA | WFTE | SUPPORT | Global | GLOBAL | General Supply | 0 | 57AU |

    | USA | WFTE | SUPPORT | Global | GLOBAL | Marketing | 0 | 57AU |

    -- modified at 13:13 Monday 29th October, 2007

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups