Help!

Odd behaviour of MS Query


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Query DAO RSS
Next:  Last cell copied  
Author Message
Marc Hillman
External


Since: Aug 03, 2007
Posts: 4



PostPosted: Fri Aug 03, 2007 5:28 pm    Post subject: Odd behaviour of MS Query
Archived from groups: microsoft>public>excel>querydao (more info?)

I have two Excel files - one we'll call "Data" and the other "UI". Data
contains large quantities of raw Data. UI contains a couple of MS Queries to
present data to the users.

When Data is not open by anyone on the network, all works perfectly fine.
Query results in UI are displayed correctly.

If Data is open by anyone on the network, UI queries cause the Data sheet to
be displayed, and the query results are wrong.

How can I make the operation of queries consistant no matter whether the
query data source is open or not ?
Back to top
Leo Rod
External


Since: Aug 07, 2007
Posts: 10



PostPosted: Tue Aug 07, 2007 4:26 pm    Post subject: Re: Odd behaviour of MS Query [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Marc

By any chance do you have the document named as "Data" as a shared document?
When you say here "wrong" is because it does not query or because the output
data is garbled?

Try referring the information on "Data" to an intermediate query/file that
interlaces with "UI".
Let me know how it works.

"Marc Hillman" <7owsx1j02 RemoveThis @sneakemail.com> wrote in message
news:1DE5242E-68FC-453A-A559-FADF6B361955@microsoft.com...
>I have two Excel files - one we'll call "Data" and the other "UI". Data
>contains large quantities of raw Data. UI contains a couple of MS Queries
>to present data to the users.
>
> When Data is not open by anyone on the network, all works perfectly fine.
> Query results in UI are displayed correctly.
>
> If Data is open by anyone on the network, UI queries cause the Data sheet
> to be displayed, and the query results are wrong.
>
> How can I make the operation of queries consistant no matter whether the
> query data source is open or not ?
Back to top
Marc Hillman
External


Since: Aug 03, 2007
Posts: 4



PostPosted: Wed Aug 08, 2007 8:01 am    Post subject: Re: Odd behaviour of MS Query [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Not sure what you mean by "Shared" document. Multiple people can open it
simultaneously, but the problem happens when a single instance is open by
anybody, including oneself.

The data is not garbled, but just incorrect.

I have found a brutal fix. In the Calculate event method of the UI Worksheet
I check to see if a sheet called "Data" is open, and if so I close it. This
fixes the problem, but isn't terribly elegant. Still looking for the
'correct' solution.

"Leo Rod" <leo@rod_com> wrote in message
news:OkkNzDT2HHA.3760@TK2MSFTNGP03.phx.gbl...
> Marc
>
> By any chance do you have the document named as "Data" as a shared
> document?
> When you say here "wrong" is because it does not query or because the
> output data is garbled?
>
> Try referring the information on "Data" to an intermediate query/file that
> interlaces with "UI".
> Let me know how it works.
>
> "Marc Hillman" <7owsx1j02.DeleteThis@sneakemail.com> wrote in message
> news:1DE5242E-68FC-453A-A559-FADF6B361955@microsoft.com...
>>I have two Excel files - one we'll call "Data" and the other "UI". Data
>>contains large quantities of raw Data. UI contains a couple of MS Queries
>>to present data to the users.
>>
>> When Data is not open by anyone on the network, all works perfectly fine.
>> Query results in UI are displayed correctly.
>>
>> If Data is open by anyone on the network, UI queries cause the Data sheet
>> to be displayed, and the query results are wrong.
>>
>> How can I make the operation of queries consistant no matter whether the
>> query data source is open or not ?
>
>
Back to top
Leo Rod
External


Since: Aug 07, 2007
Posts: 10



PostPosted: Wed Aug 08, 2007 10:48 am    Post subject: Re: Odd behaviour of MS Query [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Marc,

I believe the file is modified while you run the query and of course is not
identical when retrieving and matching data.
Try modifying the settings of the excel shared file "Data" to be saved it in
shorter time periods (tools /shared workbook / advanced / automatically save
every "x" minutes) or the calculated event on UI to save this document
before running the query instead of closing it.
Together with this have the file "Data" save a backup copy by default
everytime is saved (file / save as / tools / general options / create
backup) and reroute the query to query this backup data.

Let me know if it works.

"Marc Hillman" <7owsx1j02.DeleteThis@sneakemail.com> wrote in message
news:6B466738-DABC-44D0-AD1E-0398C16731BA@microsoft.com...
> Not sure what you mean by "Shared" document. Multiple people can open it
> simultaneously, but the problem happens when a single instance is open by
> anybody, including oneself.
>
> The data is not garbled, but just incorrect.
>
> I have found a brutal fix. In the Calculate event method of the UI
> Worksheet
> I check to see if a sheet called "Data" is open, and if so I close it.
> This
> fixes the problem, but isn't terribly elegant. Still looking for the
> 'correct' solution.
>
> "Leo Rod" <leo@rod_com> wrote in message
> news:OkkNzDT2HHA.3760@TK2MSFTNGP03.phx.gbl...
>> Marc
>>
>> By any chance do you have the document named as "Data" as a shared
>> document?
>> When you say here "wrong" is because it does not query or because the
>> output data is garbled?
>>
>> Try referring the information on "Data" to an intermediate query/file
>> that interlaces with "UI".
>> Let me know how it works.
>>
>> "Marc Hillman" <7owsx1j02.DeleteThis@sneakemail.com> wrote in message
>> news:1DE5242E-68FC-453A-A559-FADF6B361955@microsoft.com...
>>>I have two Excel files - one we'll call "Data" and the other "UI". Data
>>>contains large quantities of raw Data. UI contains a couple of MS Queries
>>>to present data to the users.
>>>
>>> When Data is not open by anyone on the network, all works perfectly
>>> fine. Query results in UI are displayed correctly.
>>>
>>> If Data is open by anyone on the network, UI queries cause the Data
>>> sheet to be displayed, and the query results are wrong.
>>>
>>> How can I make the operation of queries consistant no matter whether the
>>> query data source is open or not ?
>>
>>
>
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Query DAO All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum