Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default importing data from Access

I have two mdb's set with macros to import text files, massage the data, and
then export the resulting tables to several worksheets inside two existing
Excel files--e.g., the data from Access table "Medicaid Data" gets exported
to worksheet "Medicaid_Data" on Radiology.xls using TransferSpreadsheet. I
have another worksheet in the Excel file ("Data") that is filled with
index/match formulas which point to "Medicaid_Data" so that "Data" serves as
the graph datasource and updating "Medicaid_Data" succeeds in updating my
graph without my having to rewrite the formulas each month and also keeps the
source data with the final report for reference. This worked great last
month and in testing....

But now, while one of the Access macros is still behaving as I expected, the
other one is now creating new worksheets (e.g., "Medicaid_Data1") rather than
replacing the data on "Medicaid_Data".

Why am I now getting worksheets added with new names (xxx1) rather than
updating the existing worksheet with new data? (And why does it work in one
Access/Excel combo but not the other??)

With TransferSpreadsheet I have specified:
Transfer Type: Export
Spreadsheet Type: MS Excel 97

In both cases, I am exporting the contents of Access tables created via Make
Table queries.

Thanks for any insight!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default importing data from Access


A look at the code would be useful to get an answer. Need the bit where
you open the spreadsheet and send the data.
Also do you have the spreadsheet used as a linbked table source in the
Access database?

regards


--
tony h
------------------------------------------------------------------------
tony h's Profile: http://www.excelforum.com/member.php...o&userid=21074
View this thread: http://www.excelforum.com/showthread...hreadid=520829

Reply
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
Is it possible to use Access data w/o importing it? ricky2525 Links and Linking in Excel 0 August 25th 10 02:38 PM
Importing Data from Access baconroll Excel Discussion (Misc queries) 2 June 19th 06 01:39 PM
Importing Data from Access lowestbass Excel Programming 1 December 1st 05 12:58 PM
Importing Data from Access Jon_h2 Excel Discussion (Misc queries) 2 October 14th 05 11:15 AM
importing data from access jerry Excel Discussion (Misc queries) 2 August 4th 05 07:39 PM


All times are GMT +1. The time now is 09:11 PM.

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

About Us

"It's about Microsoft Excel"