Results 1 to 3 of 3

Thread: Export Access Table to .txt file

  1. #1

    Thread Starter
    Fanatic Member The_Grudge's Avatar
    Join Date
    Jan 2005
    Location
    Canada
    Posts
    836

    Export Access Table to .txt file

    I'm trying to export an Access table to a text file but I'm having one issue.

    My date should be formatted as "yyyymmdd" and it appears to be until I export it to the text file. Then Access throws the "/" back in.

    How can I stop this?

  2. #2
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: Export Access Table to .txt file

    Grudge
    You can override this by using an Export Specification.


    The best way to understand this is to first do a manual export of a table.
    1/ Select Table
    2/ Select File-->Export
    3/ Change the file type to Text File.
    4/ Click on Export
    5/ On theExport Text wizard there's a button in the bottom left corner titled 'Advanced...' Click on it

    This brings up a dialog where you can set all the specifications for your export - including the date delimiter and date Order.

    6/ Set this spec up as you need it and then click "Save As...'
    This will record your spec with your chosen name in a system table call "MSysIMEXSpecs" - you wwill need to unhide system object to see this table.

    Now when you call the export Method you can refer to this specification.
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

  3. #3
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: Export Access Table to .txt file

    Sorry Grudge, the last line should read


    Now when you call the TransferText Method you can refer to this specification by the name you saved it as, by passing it to the Method in the "SpecificationName" input.
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width