If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > transferring query output into a spreadsheet

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-17-10, 09:26
Tiggerandpoo Tiggerandpoo is offline
Registered User
 
Join Date: Mar 2009
Posts: 36
transferring query output into a spreadsheet

Hi

I am trying to export the result from a query into a spreadsheet. It works fine if I put the entire path to the spreadsheet into the code but it brings up errors if I am trying to following:

DoCmd.TransferSpreadsheet acExport, "(SE)qry_FindStatusChange", gstrAppDirectory() & "reports\StatusChange.xls", True


Anyone any ideas?
Reply With Quote
  #2 (permalink)  
Old 11-17-10, 11:26
pbaldy pbaldy is offline
Registered User
 
Join Date: May 2005
Location: Nevada, USA
Posts: 2,475
What exactly does gstrAppDirectory return? Likely it isn't correct.
__________________
Paul
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On