473,796 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access 97 Different Row Counts for Snapshot or Dynaset query

I have a query that returns different results (3508 rows for snapshot,
6288 for dynaset) and that is the only thing I change to get the
different results. When I try to make a table from the query, it
makes 3508 rows. I also know that there are 6288 unique rows in the
results. Is there some configuration choice that is causing the
snapshot version to return the wrong row count?

Thanks for your help on this one. If it wasn't that the Dynaset takes
so long to scroll through the records when generating text output
(half an hour vs a couple of seconds for the snapshot) I wouldn't mind
using the dynaset.

So I guess I'm hoping for either a solution to the wrong snapshot
count or a way to improve the speed of the dynaset.

bi***@gci.net

Mar 14 '07 #1
3 3646
Strange one.

First thing to do will be a compact and repair (Tools menu.) It is just
possible that the difference is due to an bad index, and a repair could fix
that.

If that doesn't solve the problem, can you confirm that you have SR2 for
Access 97? If not, grab the SP from:
http://support.microsoft.com/kb/151261

Next, search your entire hard disk for msjet35.dll. There should be only one
copy, probably in windows\system3 2. Sometimes you could end up with
multiples, which meant the patch you thought you were running was acually
different.

Once you pin it down to one, see if you need an update:
http://support.microsoft.com/kb/172733

If those things don't apply, is this running on a dual-processor machine?
http://support.microsoft.com/kb/178650

If none of that helps, it is time to start examining the SQL statement, to
see if this is a known JET bug. There's lots of them, so it can take some
time to track down, particularly if the SQL statement is complex, or based
on other lower-level queries, subqueries, disparate joins, literals in
joins, etc. Post the SQL statement with info about the fields used in joins,
criteria, and grouping.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Bill Hutchison" <bi***@gci.netw rote in message
news:45******** ******@news.gci .net...
>I have a query that returns different results (3508 rows for snapshot,
6288 for dynaset) and that is the only thing I change to get the
different results. When I try to make a table from the query, it
makes 3508 rows. I also know that there are 6288 unique rows in the
results. Is there some configuration choice that is causing the
snapshot version to return the wrong row count?

Thanks for your help on this one. If it wasn't that the Dynaset takes
so long to scroll through the records when generating text output
(half an hour vs a couple of seconds for the snapshot) I wouldn't mind
using the dynaset.

So I guess I'm hoping for either a solution to the wrong snapshot
count or a way to improve the speed of the dynaset.

bi***@gci.net
Mar 14 '07 #2
Thanks to Allen Browne for his advice so far. It turns out I already
had the Jet SP3. Here is the query which results in different row
counts. It is based on a query of the JCN table plus two tables
generated from crosstab queries of scheduled start and scheduled
finish dates, the tables being a limited set of the project activities
from the crosstab queries of an activities table. The joins are on
the JCN columns, sorted on the first three columns of the [JCN SCHED
QUERY].

SELECT [JCN SCHED QUERY].LOC, [JCN SCHED QUERY].FAC, [JCN SCHED
QUERY].JCN, [JCN SCHED QUERY].ST, [JCN SCHED QUERY].WORK_LOC_DESC,
LS.S00, LS.S08, LS.S10, LS.S21, LS.S44, LS.S80, LS.SComp, LS.SClose,
LF.F00, LF.F08, LF.F10, LF.F21, LF.F44, LF.F80, LF.FComp, LF.FClose
FROM ([JCN SCHED QUERY] INNER JOIN LF ON [JCN SCHED QUERY].JCN =
LF.JCN) INNER JOIN LS ON LF.JCN = LS.JCN
ORDER BY [JCN SCHED QUERY].LOC, [JCN SCHED QUERY].FAC, [JCN SCHED
QUERY].JCN
WITH OWNERACCESS OPTION;
On Wed, 14 Mar 2007 14:47:36 GMT, bi***@gci.net (Bill Hutchison)
wrote:
>I have a query that returns different results (3508 rows for snapshot,
6288 for dynaset) and that is the only thing I change to get the
different results. When I try to make a table from the query, it
makes 3508 rows. I also know that there are 6288 unique rows in the
results. Is there some configuration choice that is causing the
snapshot version to return the wrong row count?

Thanks for your help on this one. If it wasn't that the Dynaset takes
so long to scroll through the records when generating text output
(half an hour vs a couple of seconds for the snapshot) I wouldn't mind
using the dynaset.

So I guess I'm hoping for either a solution to the wrong snapshot
count or a way to improve the speed of the dynaset.

bi***@gci.ne t
Mar 20 '07 #3
Okay, Bill, I take it you are certain that you have SP2 for Office 97, and
that you have only one copy of msjet35.dll on your hard disk, and it is not
a dual core processor, and that the compact/repair did not solve the
problem.

The query statement looks innocuous enough. But it might depend on the
queries underneath it, so you will need to drill down further and look at
those as well. Particularly, any criteria on calculated fields? If so, they
may need to be explicitly typecast:
http://allenbrowne.com/ser-45.html

Likewise, if there are any parameters, explicitly declare them so they are
typed (Parameters on Query menu, in query design view), but do not declare
the parameters applied on fields of type Text, since that could trigger this
bug:
http://allenbrowne.com/bug-13.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Bill Hutchison" <bi***@gci.netw rote in message
news:46******** *******@news.gc i.net...
Thanks to Allen Browne for his advice so far. It turns out I already
had the Jet SP3. Here is the query which results in different row
counts. It is based on a query of the JCN table plus two tables
generated from crosstab queries of scheduled start and scheduled
finish dates, the tables being a limited set of the project activities
from the crosstab queries of an activities table. The joins are on
the JCN columns, sorted on the first three columns of the
[JCN SCHED QUERY].
SELECT [JCN SCHED QUERY].LOC,
[JCN SCHED QUERY].FAC,
[JCN SCHED QUERY].JCN,
JCN SCHED QUERY].ST,
[JCN SCHED QUERY].WORK_LOC_DESC,
LS.S00, LS.S08, LS.S10, LS.S21, LS.S44,
LS.S80, LS.SComp, LS.SClose, LF.F00,
LF.F08, LF.F10, LF.F21, LF.F44,
LF.F80, LF.FComp, LF.FClose
FROM ([JCN SCHED QUERY] INNER JOIN LF
ON [JCN SCHED QUERY].JCN = LF.JCN)
INNER JOIN LS ON LF.JCN = LS.JCN
ORDER BY [JCN SCHED QUERY].LOC,
[JCN SCHED QUERY].FAC,
[JCN SCHED QUERY].JCN
WITH OWNERACCESS OPTION;
>

On Wed, 14 Mar 2007 14:47:36 GMT, bi***@gci.net (Bill Hutchison)
wrote:
>>I have a query that returns different results (3508 rows for snapshot,
6288 for dynaset) and that is the only thing I change to get the
different results. When I try to make a table from the query, it
makes 3508 rows. I also know that there are 6288 unique rows in the
results. Is there some configuration choice that is causing the
snapshot version to return the wrong row count?

Thanks for your help on this one. If it wasn't that the Dynaset takes
so long to scroll through the records when generating text output
(half an hour vs a couple of seconds for the snapshot) I wouldn't mind
using the dynaset.

So I guess I'm hoping for either a solution to the wrong snapshot
count or a way to improve the speed of the dynaset.

bi***@gci.n et
Mar 20 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3431
by: Jegger | last post by:
Hello! We have following situation; network with 100 users, aplication developed in Access, user DB deployed on SQL Server. Is it better to create query inside aplication (with code) and then pass it to SQL Server for execution or is it better to have all these queries saved like stored procedures and then called from aplication?
35
2840
by: sacha.prins | last post by:
Hi, I read a lot about DB2 INSERT performance here. I have a nice story as well. The thing is, I work on 2 installations of DB2 (on completely different locations) which run on different (but same generation) hardware. Benchmarking the disk throughput and CPU basically amounts to the same figures (+/- 10%).
10
15383
by: Marizel | last post by:
I'm not sure there's an easy solution to this, but thought I'd ask. I often find myself with a query which I'd like to reuse, but with a different datasource. These datasources generally have identical field names. The queries select a subset of the fields, so "Select *" is not really an option. Is there an easy way to change the source of a query, either in the design grid or SQL display? I suppose I could copy the SQL into WordPad...
9
7279
by: Daven Thrice | last post by:
If I have a fairly big Access MDB, that is relational, and has, say, 100 objects (forms, reports, modules, etc.), what is the path to get this database "online". Is there a way to put the tables online and then distribute the front end to each user? What if I want to have all the forms and stuff online? How do you approach something like that? Is it a total rewrite with another tool?
5
5870
by: MLH | last post by:
I have a table I can open as table type recordset or a dynaset. Searching for a particular value in the table's main keyfield, which would be faster and less strain on the application... FindFirst method - or - Seek method?
24
41601
by: Bob Alston | last post by:
Anyone know a way to make all access to a linked table, in another Access MDB, read only? I really don't want all the hassle of implementing full access security. I can't do this at the server file system because in some front ends the user needs update access. I want to give users access to the data for reporting with their own queries and reports. I just don't want to take a chance on them
2
1490
by: MLH | last post by:
I feel pretty lucky on my last SQL question. I think I'll try one more... If there is a table (tblCorrespondence) with a field in it named and I am extracting a dynaset of records having an value of "06"... - Lets say the query displays , , and . And lets say that for every record in the table having an value of "06", I would also like to know if there
13
3999
by: royaltiger | last post by:
I am trying to copy the inventory database in Building Access Applications by John L Viescas but when i try to run the database i get an error in the orders form when i click on the allocate button "Unexpected Error":3251 operation is not supported for this type of object.The demo cd has two databases, one is called inventory and the other just has the tables for the design called inventory data. When you run inventory the database works...
4
2347
by: ThePhenix | last post by:
Hi everybody, I have recently been doing a conversion for my boss for a access 2000 database (both front and backend) to a MSSQL backend. I finished the conversion today (as quite a lot of the code / queries ran slow due to access running the queries locally rather than on the server). And tested it on my and my boss's machine with no problems so he gave the go ahead to update everybody to our new mssql 2000 backend with the modified...
0
9680
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9528
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10456
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10230
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10012
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5442
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2926
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.