Solved

Transfer Spreadsheet Action

Posted on 1998-01-12
2
699 Views
Last Modified: 2012-08-13
Need to transfer Access data to an Excel spreadsheet file on a server.  When I send the query results to the file, it replaces the information that was in that file previously.  Is there a way in VBA to append the information to the Excel file?  Do I have to send it to a different file each time in the same folder/directory perhaps?
0
Comment
Question by:panrob
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
chapie earned 100 total points
ID: 1965307
I've never had to append an Excel file before, always just replaced, but I would imagine you can create a linked table to the spreadsheet file, then create a temporary table run an append to the temp table, adding the current spreadsheet info, then add the table/query you want to the temp table, then do your transfer over the .xls file, at least that's how I would attempt it, maybe someone else has a better solutino
0
 

Author Comment

by:panrob
ID: 1965308
I hadn't thought of linking because I am exporting crosstab query results.  Haven't had a chance to see how appending works but I'll give it a whirl.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question