AcFormat in Docmd

Posted on 2012-08-24
Last Modified: 2012-08-24
Could someone please help.
I am trying to export a table to a csv file using the following:

DoCmd.OutputTo acOutputTable, "shippedmanifest", acFormatCSV, "c:\scansystem\export\Shipped-" & Format$(StDate, "dd-mm-yyyy-hh-mm") & " " & Me.shippername & ".csv", False, "", , acExportDelim

acformatCSV isnt accepted.

Thanks in advance
Question by:iainmacleod
    LVL 39

    Accepted Solution

    If you like docmd.Outputto use acFormatTXT
    I can recommend you to use for export as csv
    docmd.transfertext with acExportDelim

    Author Closing Comment

    Perfect, many thanks

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
    Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
    With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
    With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now