473,396 Members | 1,935 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Access not releasing Excel

I'm exporting some data to excel but am having trouble getting Access
to 'release' Excel.

What i want to achieve is to open excel, export some data then leave
excel open so that the user can them manipulate the excel spreadsheet
however they wish. The problem is that Excel instance is still open
even when the user has finished with the spreadsheet and manually
closed the application.

How can i break the tie to Excel but leave it and the exported
spreadsheet open?

As a side issue which is the "better" (preferred) way to export the
data - use the transferspreadsheet method or copy from a recordset?

Many thanks

Simon
Nov 13 '05 #1
2 1569
si**********@dynexsemi.com (sausage31) wrote:
As a side issue which is the "better" (preferred) way to export the
data - use the transferspreadsheet method or copy from a recordset?


I use ODBC to transfer data to Excel, but if you're using code, do you
close all recordsets and set them to = Nothing?

ie

rs.Close
Set rs = Nothing
db.Close
Set db = Nothing
Nov 13 '05 #2
Keith Wilby <ke*********@AwayWithYerCrap.com> wrote in message news:<Xn************************@10.15.188.42>...
si**********@dynexsemi.com (sausage31) wrote:
As a side issue which is the "better" (preferred) way to export the
data - use the transferspreadsheet method or copy from a recordset?


I use ODBC to transfer data to Excel, but if you're using code, do you
close all recordsets and set them to = Nothing?

ie

rs.Close
Set rs = Nothing
db.Close
Set db = Nothing


This correlates to what I've read. On http://www.OutlookCode.com one
of the articles talks about how not releasing every single Automation
object you Set such as a Worksheet will cause Outlook to stay open. I
think this was for Early binding. It sounds like Excel is the same
way. As far as exporting the data to Excel it depends on what you're
doing. In some cases just having Access link to the Excel spreadsheet
and then running an update query is the easiest way to change the
data. Transferspreadsheet looks pretty efficient. I've never used
it, though, since I like fooling around with the model :-).

James A. Fortune
Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: juffles | last post by:
Dear Anyone, I am a newbie so please forgive my ignorance. Is there anyway that i can migrate data from access to excel and for the data to be presented as a graph all in one single button? ...
5
by: Tammy | last post by:
I am doing some genealogy research and I have discovered that there is a lot of data available on the web in text format. The problem is that the columns in the files are lined up by spaces. I'd...
3
by: info | last post by:
After using clipboard functions in Excel controlled from Access VBA, Excel doesn't quit when I use the following ExcelApp.Quit Set ExcelApp = Nothing If I don't use the clipboard functions in...
12
by: D. Shane Fowlkes | last post by:
This most likely belongs in another forum but I thought I'd start here. I have a COM Object written in VB6. The DLL will access MS Excel and use it's Object Library to write a customized report...
13
by: nuti | last post by:
Hi all, I am fairly new to VB.I am trying to figure out as how to write a script so that i can read the data from an excel sheet to Access. can u guys please help me out? cheers, nuti
1
by: garry.oxnard | last post by:
Can anyone help me to solve a problem which involves switching from Access to Excel (then back to Access) programatically please? I have an Excel template which, on open, also opens an Access...
3
by: aniphilip | last post by:
Hi All, I have a requirement to automate Access functionality from Excel. I need to open Access, trigger button events and close Access from Excel. I Achieved opening Access from Excel. I...
5
by: erick-flores | last post by:
Hello all I have 4 tables in MS Access 2003. I want to export all these tables, with their links, to Excel. How do I export them with all the link between tables....can I do that? I know I can...
3
by: peteh | last post by:
Hi All; I have tried to find this info on the IBM site, but alas... We are running DB2 v9.1.1 and making extensive use of Information Integrator (now known as Websphere Federation Server?!) to...
0
by: Simon | last post by:
Dear reader, How to export a hyperlink field from Access to Excel, so it is also working in Excel. In Excel you have for the Hyperlink to parts: a.. Text To Display
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.