Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Sep 2002
    Location
    East Coast(USA)
    Posts
    109
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Export table to Excel (Acc 2K)

    Greetings,

    I

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

    Re: Export table to Excel (Acc 2K)

    You can use DoCmd.TransferSpreadsheet in the On Click code of a command button to export a table or query to Excel. For example:

    Private Sub cmdExport_Click()
    DoCmd.TransferSpreadsheet TransferType:=acExport, _
    SpreadsheetType:=acSpreadsheetTypeExcel9, _
    TableName:="Name_of_Table_or_Query", _
    FileName:="C:ExcelExport.xls", _
    HasFieldNames:=True
    End Sub

Posting Permissions

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