Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    marianne is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Asia Pacific Region
    Posts
    150
    not really.

  2. #17
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Quote Originally Posted by marianne View Post
    Private Sub exporting_click()
    docmd.OutputTo acOutputQuery ,"Accounts",acformatxls,"C:\Account.xls",true
    End Sub

    this is as simple as it can get. I am just wondering where to insert the progressbar coding.
    As long as this is the method you are using to export the data, no ProgressBar will help because it will never have any CPU time to update.

  3. #18
    marianne is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Asia Pacific Region
    Posts
    150
    so what would be your suggestion so I can use the progressbar.

  4. #19
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Can you try this where you are now to see if there is any difference in the time taken?
    Code:
    Private Sub exporting_click()
       docmd.OutputTo acOutputQuery ,"Accounts",acformatxls,"C:\Account.xls",False
    End Sub

  5. #20
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Have you looked into the TransferSpreadsheet Method yet? It can export.
    Something like:
    DoCmd.TransferSpreadsheet acExport,,"Accounts,"C:\Account.xls"

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums