Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Jan 2005
    Posts
    614
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Access to Excel (Access97)

    Some days I just can't stay away from this forum

    I need to save Access table as in Excel format to a directory.
    I am trying TransferText etc and it asks to create specifications - I don't understand how.

    So I decided to use Save as but format gets screwed...anyway if you can just tell me what method is the best to use?

    Thanks

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Access to Excel (Access97)

    Do you want to export manually, or using code?

    Manually, you would use File | Save As/Export...

    In code, you would use DoCmd.TransferSpreadsheet, not TransferText (that is for text files). The instruction looks like this:

    DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, "tblSomething", "C:TestExport.xls", True

  3. #3
    5 Star Lounger
    Join Date
    Jan 2005
    Posts
    614
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Access to Excel (Access97)

    Thank you so much

Posting Permissions

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