Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel Save Issue

All,

I use ADO to modify data in Excel, when I open the excel file, the data in
is showed updated, but when I use another program to visit it, the data is
not updated.
When I open and then close the file manually, the excel prompt me to save.
if I choose save, the data got by another program is right, if not save, the
data is still keep the original value.

Can someone give me the suggestion on how to avoid this issue.
Some demo code will be highly appreciated,

thanks,

Albert


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Excel Save Issue

My guess is that you set the query to update your data when you open the
file. That would explain the behavior you describe: the update only takes
place when Excel opens the file because the macro is an Excel feature. Any
other app that uses the file only reads the saved data. So once you save the
data it is there to be used by the other apps, but if it is "old" data that
is saved, that is what the other apps have to work with. But when you open
the file in Excel, you see the new data.

Don't know how to avoid this. It is a limitation to the approach you are
using; Excel is not really set up to give you a "live" link between an
external database and 3rd party apps; that is what ODBC is for - but the
other apps have to support import via ODBC for that to work.
--
- K Dales


"AlbertGe" wrote:

All,

I use ADO to modify data in Excel, when I open the excel file, the data in
is showed updated, but when I use another program to visit it, the data is
not updated.
When I open and then close the file manually, the excel prompt me to save.
if I choose save, the data got by another program is right, if not save, the
data is still keep the original value.

Can someone give me the suggestion on how to avoid this issue.
Some demo code will be highly appreciated,

thanks,

Albert



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel Save Issue

For my case, two application use the same approach to visit excel file, the
difference is one application write excel file then close, the other only do
read. two all use oledb.
I guess, may be I need to save it after change data use recordset, but I do
not know how to realize it in ADO.

Anyway, than Dales for your kind comments,
Albert

"K Dales" дÈëÓʼþ
...
My guess is that you set the query to update your data when you open the
file. That would explain the behavior you describe: the update only takes
place when Excel opens the file because the macro is an Excel feature.

Any
other app that uses the file only reads the saved data. So once you save

the
data it is there to be used by the other apps, but if it is "old" data

that
is saved, that is what the other apps have to work with. But when you

open
the file in Excel, you see the new data.

Don't know how to avoid this. It is a limitation to the approach you are
using; Excel is not really set up to give you a "live" link between an
external database and 3rd party apps; that is what ODBC is for - but the
other apps have to support import via ODBC for that to work.
--
- K Dales


"AlbertGe" wrote:

All,

I use ADO to modify data in Excel, when I open the excel file, the data

in
is showed updated, but when I use another program to visit it, the data

is
not updated.
When I open and then close the file manually, the excel prompt me to

save.
if I choose save, the data got by another program is right, if not save,

the
data is still keep the original value.

Can someone give me the suggestion on how to avoid this issue.
Some demo code will be highly appreciated,

thanks,

Albert





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
save as issue jatman Excel Discussion (Misc queries) 1 March 21st 08 09:41 AM
when excel save as csv,double quotes in an cell issue frank Excel Discussion (Misc queries) 0 October 26th 07 03:14 AM
File Save/Save As Issue Josh O. Setting up and Configuration of Excel 3 August 28th 07 06:33 PM
Save As Authentication Issue From ASP.NET Matt Schwartz Excel Discussion (Misc queries) 0 June 9th 06 05:34 AM
Save As issue Logan[_2_] Excel Programming 2 April 11th 04 04:12 PM


All times are GMT +1. The time now is 05:58 AM.

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"