LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.access.formscoding
external usenet poster
 
Posts: 593
Default Output an Access Table or Query to Excel


Jamie Collins wrote:

strSQLToExecute = "SELECT [" & strItemToOutput & "].* INTO [Excel
8.0;Database=" & strOutputPathAndFile & "].[" & strItemToOutput & "]
FROM " & strItemToOutput


Good to know it still works, even in Access2003.


Sorry, I thought I was posting to one of the Access groups. For Excel
users who missed my subtle point, see:

You cannot change, add, or delete data in tables that are linked to an
Excel workbook in Office Access 2003 or in Access 2002:
http://support.microsoft.com/kb/904953/en-us

"Because of legal issues**, Microsoft has disabled the functionality in
Access 2003 and in Access 2002 that let users change the data in linked
tables that point to a range in an Excel workbook."

The same applies to Jet SQL code executed anywhere from with the Access
UI (query object, VBA code, etc) that would directly update Excel data.

** For the story on the 'legal issues', see:

Lawsuit forces users to update Microsoft Office:
http://www.theregister.co.uk/2006/02..._infringement/

"Users of Microsoft's Office and Access packages have been told they
will have to install updates as a result of a patent infringement
dispute between Microsoft and a Guatemalan inventor that has cost the
software firm almost $9 million in damages..."

Jamie.

--

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection of Excel 07 pivot table to Access Query makes DB read o Chuck W[_2_] Excel Discussion (Misc queries) 0 October 9th 09 03:45 PM
Excel Pivot Table or Access Cross Tab Query Question greene2j Excel Discussion (Misc queries) 0 January 14th 08 01:49 AM
VBA - query an Access table - results in Excel rirus Excel Programming 3 August 21st 06 07:29 PM
Linking parameter query from Access to pivot table in Excel ken1975 Excel Discussion (Misc queries) 2 June 20th 06 01:51 PM
Linking a table in Access to a table in Excel using MS Query Diana[_5_] Excel Programming 1 January 16th 04 09:43 PM


All times are GMT +1. The time now is 12:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"