A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Query producing different results each time it is run



 
 
Thread Tools Display Modes
  #1  
Old February 17th, 2010, 12:50 PM posted to microsoft.public.access.queries
Tim Green
external usenet poster
 
Posts: 19
Default Query producing different results each time it is run

I have a database with a table linked to a FoxPro database. The table has
over 600,000 records.

I run a query that returns about 1500 of those records. But the result
changes every time I run it!

It is an accounts database, and I am querying a closed period, so the FoxPro
table has not changed (or at least the records selected by the query have
not, though more recent data will have been added). I have run the query
multiple times and get a different result each time. Out of 500 or so
accounts, 2 or 3 are wrong each time I run the query, but it's never the same
accounts. Since each account is almost always correct, I think it's safe to
assume the query is correct (though not necessarily effiecient, of course).

My set-up is that I have written a query on this table, and an append query
based on that. When I query the table that was appended to, I find that my
account totals are wrong, and have to run the corresponding delete query.

Is this set-up inherently unstable? If the FoxPro table is just too large
for Access to cope, can anyone suggest another way of doing this?
  #2  
Old February 17th, 2010, 01:07 PM posted to microsoft.public.access.queries
Tim Green
external usenet poster
 
Posts: 19
Default Query producing different results each time it is run

Actually, scrap that part about the intermediate query, I was thinking of
something else. This is an append query that directly queries the external
table.

"Tim Green" wrote:

I have a database with a table linked to a FoxPro database. The table has
over 600,000 records.

I run a query that returns about 1500 of those records. But the result
changes every time I run it!

It is an accounts database, and I am querying a closed period, so the FoxPro
table has not changed (or at least the records selected by the query have
not, though more recent data will have been added). I have run the query
multiple times and get a different result each time. Out of 500 or so
accounts, 2 or 3 are wrong each time I run the query, but it's never the same
accounts. Since each account is almost always correct, I think it's safe to
assume the query is correct (though not necessarily effiecient, of course).

My set-up is that I have written a query on this table, and an append query
based on that. When I query the table that was appended to, I find that my
account totals are wrong, and have to run the corresponding delete query.

Is this set-up inherently unstable? If the FoxPro table is just too large
for Access to cope, can anyone suggest another way of doing this?

  #3  
Old February 17th, 2010, 02:30 PM posted to microsoft.public.access.queries
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default Query producing different results each time it is run

What is 'wrong'? Could you provide examples?

Please post the SQL statement for the query.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Tim Green" wrote:

Actually, scrap that part about the intermediate query, I was thinking of
something else. This is an append query that directly queries the external
table.

"Tim Green" wrote:

I have a database with a table linked to a FoxPro database. The table has
over 600,000 records.

I run a query that returns about 1500 of those records. But the result
changes every time I run it!

It is an accounts database, and I am querying a closed period, so the FoxPro
table has not changed (or at least the records selected by the query have
not, though more recent data will have been added). I have run the query
multiple times and get a different result each time. Out of 500 or so
accounts, 2 or 3 are wrong each time I run the query, but it's never the same
accounts. Since each account is almost always correct, I think it's safe to
assume the query is correct (though not necessarily effiecient, of course).

My set-up is that I have written a query on this table, and an append query
based on that. When I query the table that was appended to, I find that my
account totals are wrong, and have to run the corresponding delete query.

Is this set-up inherently unstable? If the FoxPro table is just too large
for Access to cope, can anyone suggest another way of doing this?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:01 PM.


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