Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 153
Default How do you know when a data refresh is complete

I have an Excel worksheet which is opened from a Access
2002 project vba module. The worksheet has several
MSQUERY queries which are triggered by the Access project
writing to particular cells. After writing to the Excel
cells the Access application tries to 'save as' the
worksheet. Unfortanetly Access is requesting the 'save
as' whilst the data refreshes are ongoing.

My question: is there a way of interrogating Excel to find
out if a data refresh is outstanding?

Thanks in advance.

David.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default How do you know when a data refresh is complete

QueryTable objects have a boolean "Refreshing" property that returns the status if the query is setup as a background query. You could also (I believe) just turn off the Background query option on all queries, or perhaps just the last query

-Bra

----- David wrote: ----

I have an Excel worksheet which is opened from a Access
2002 project vba module. The worksheet has several
MSQUERY queries which are triggered by the Access project
writing to particular cells. After writing to the Excel
cells the Access application tries to 'save as' the
worksheet. Unfortanetly Access is requesting the 'save
as' whilst the data refreshes are ongoing.

My question: is there a way of interrogating Excel to find
out if a data refresh is outstanding

Thanks in advance

David.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 459
Default How do you know when a data refresh is complete

This sounds like a case of 'spot where the *real* problem lies'.
Solve the problem, don't just treat the symptoms.

Your approach sounds a mess IMHO. MS Query is a client (Excel) side
data access technology but you are also using the server (MS Access
automation - not even using Jet!) to directly write data to the
client. I'd suggest you use one or the other. Sounds like your
workbook is static and your data is dynamic so I suggest you just use
Excel for the clever stuff and use Jet as a dumb data store.

Feel free to post back if you need advice on changing your data access
approach.

--

"David" wrote in message ...
I have an Excel worksheet which is opened from a Access
2002 project vba module. The worksheet has several
MSQUERY queries which are triggered by the Access project
writing to particular cells. After writing to the Excel
cells the Access application tries to 'save as' the
worksheet. Unfortanetly Access is requesting the 'save
as' whilst the data refreshes are ongoing.

My question: is there a way of interrogating Excel to find
out if a data refresh is outstanding?

Thanks in advance.

David.

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
Can you add data into the auto-complete list? Yaelikins Excel Discussion (Misc queries) 2 September 2nd 09 08:17 PM
Create refresh button in worksheet to refresh Pivot Table Data Ron Excel Worksheet Functions 1 October 13th 07 01:20 AM
How do I attach data to auto complete Snoopy Excel Worksheet Functions 0 July 6th 05 10:51 AM
Formulas (If linked data is not null, then insert "Complete" in ce Task Lead Nicole Excel Worksheet Functions 3 January 10th 05 06:25 PM
Pivot Table REFRESH Flaw -- Saves Old Data in Selection Area AFTER REFRESH Ken Roberts Excel Programming 3 September 11th 03 06:02 AM


All times are GMT +1. The time now is 04:12 AM.

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"