473,565 Members | 2,770 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Query works differently on two PCs

I have an Access 2003 database with a query that works fine on my PC
but does not work on another PC. My PC has older versions of Access
installed as well as 2003 - the other PC only has Access 2003.

The query is as follows:

SELECT tblOrganization .strOrgName, tblPerson.strNa meL,
tblPerson.strNa meF, tblPersonFCL_Co urses.lngIDPers on,
tblPersonFCL_Co urses.strHOTest , tblPersonFCL_Co urses.strCert,
tblPersonFCL_Co urses.ysnProces sed, tblStaffCert.ID Person,
tblStaffCert.st rCert
FROM (tblOrganizatio n INNER JOIN tblPerson ON
tblOrganization .IDorganization = tblPerson.lintF KOrganization) INNER
JOIN (tblPersonFCL_C ourses LEFT JOIN tblStaffCert ON
(tblPersonFCL_C ourses.strCert = tblStaffCert.st rCert) AND
(tblPersonFCL_C ourses.lngIDPer son = tblStaffCert.ID Person)) ON
tblPerson.IDPer son = tblPersonFCL_Co urses.lngIDPers on
WHERE (((tblPersonFCL _Courses.lngIDP erson) Not In (select lngIDPerson
from tblPersonFCL_Co urses where strCert="ML" and ysnProcessed =
false)) AND ((tblPersonFCL_ Courses.strCert )="ML") AND
((tblPersonFCL_ Courses.ysnProc essed)=True) AND
((tblStaffCert. IDPerson) Is Null));

When I run this query on my PC, it returns one record (which is
correct).

When we run the query on the problem PC - it returns a different
record, but it is in some sort of loop because we get hundreds of
records (all the same person - yet a different record from what
appears on the other PC with the same data files). We have to control
break to get out of this query.

I'm trying to resolve this remotely - I've got a fresh copy of both
the front end and back end that is on the problem PC... I can't
recreate any problems - all works great on mine.

We have tried:
compact/repair
new blank database for both front and back end, importing all objects
autoname correct is turned off
double-checked all library references and order of same (am using dao
3.6, excel and outlook libraries along with the standard vba, access
11, OLE automation and Active X Data objects)
We also tried converting it to Access 2000 format on both PC's - the
converted one works great on mine, does not work on the client PC -
returns the same error.

Any ideas of what else to check??
Thanks in advance.

Jan 31 '07 #1
2 2698
Since the query works on one computer an not on another (assuming identical
data), the first thing to look for would be a difference in versions.

Locate msjet40.dll (typically in windows\system3 2.)
Right-click it in the Windows Explorer, and choose Properties.
On the Version tab, what is the minor version?
It should be at least 4.0.8015.0.
Anything that starts with an 8 or 9 is fine. (It varies with your version of
Windows.) But if the minor version starts with 7 or less, download the
service pack from:
http://support.microsoft.com/kb/239114

If that does not solve the problem, and you are quite sure that the field
types and sizes match correctly, there is a potential issue with the yes/no
field in the WHERE clause and the outer join. Try:
AND (CBool(Nz(tblPe rsonFCL_Courses .ysnProcessed,F alse)) = True)

There is a whole class of bugs in Access based on the fact that JET cannot
handle nulls in yes/no fields, despite the fact that outer join queries
regularly yield nulls in boolean fields. Sometimes it crashes. Sometimes it
gives wrong results. Sometimes it gives nonsense errors as in this example:
http://allenbrowne.com/bug-14.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.

"Cindy" <ck*********@ya hoo.comwrote in message
news:11******** **************@ h3g2000cwc.goog legroups.com...
>I have an Access 2003 database with a query that works fine on my PC
but does not work on another PC. My PC has older versions of Access
installed as well as 2003 - the other PC only has Access 2003.

The query is as follows:

SELECT tblOrganization .strOrgName, tblPerson.strNa meL,
tblPerson.strNa meF, tblPersonFCL_Co urses.lngIDPers on,
tblPersonFCL_Co urses.strHOTest , tblPersonFCL_Co urses.strCert,
tblPersonFCL_Co urses.ysnProces sed, tblStaffCert.ID Person,
tblStaffCert.st rCert
FROM (tblOrganizatio n INNER JOIN tblPerson ON
tblOrganization .IDorganization = tblPerson.lintF KOrganization) INNER
JOIN (tblPersonFCL_C ourses LEFT JOIN tblStaffCert ON
(tblPersonFCL_C ourses.strCert = tblStaffCert.st rCert) AND
(tblPersonFCL_C ourses.lngIDPer son = tblStaffCert.ID Person)) ON
tblPerson.IDPer son = tblPersonFCL_Co urses.lngIDPers on
WHERE (((tblPersonFCL _Courses.lngIDP erson) Not In (select lngIDPerson
from tblPersonFCL_Co urses where strCert="ML" and ysnProcessed =
false)) AND ((tblPersonFCL_ Courses.strCert )="ML") AND
((tblPersonFCL_ Courses.ysnProc essed)=True) AND
((tblStaffCert. IDPerson) Is Null));

When I run this query on my PC, it returns one record (which is
correct).

When we run the query on the problem PC - it returns a different
record, but it is in some sort of loop because we get hundreds of
records (all the same person - yet a different record from what
appears on the other PC with the same data files). We have to control
break to get out of this query.

I'm trying to resolve this remotely - I've got a fresh copy of both
the front end and back end that is on the problem PC... I can't
recreate any problems - all works great on mine.

We have tried:
compact/repair
new blank database for both front and back end, importing all objects
autoname correct is turned off
double-checked all library references and order of same (am using dao
3.6, excel and outlook libraries along with the standard vba, access
11, OLE automation and Active X Data objects)
We also tried converting it to Access 2000 format on both PC's - the
converted one works great on mine, does not work on the client PC -
returns the same error.

Any ideas of what else to check??
Thanks in advance.
Jan 31 '07 #2
Hi Allen -
The dll's on all machines are up to date. I modified the boolean
field as indicated, but the problem persists. I'm going to get around
it by using temp tables to denormalize - and in the meantime have
decided that I'm swearing off Access booleans!!! Many thanks for your
time.

The inconsistencies sure do seem to be getting worse though - sounds
like I've got to do some more planning ahead to make sure I'm not
going to hit this again!

Cindy

Feb 6 '07 #3

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

Similar topics

3
3669
by: Patchwork | last post by:
Hi Everyone, Please take a look at the following (simple and fun) program: //////////////////////////////////////////////////////////////////////////// ///////////// // Monster Munch, example program #include <list>
5
4478
by: Bernie | last post by:
Greetings, I have 3 servers all running SQL Server 2000 - 8.00.818. Lets call them parent, child1, and child 2. On parent, I create a view called item as follows: CREATE view Item as select * from child1.dbchild1.dbo.Item union all select * from child2.DBChild2.dbo.Item
3
1474
by: rong.guo | last post by:
Hello group! I am having a problem with simplying my query... I would like to get customers' balance info based on how many months since they opened their accounts. The tricky part here is accounts starting with '28' are treated differently than other accounts, they are given 3 months grace period. In other words, for all other accounts,...
0
435
by: aaron.reese | last post by:
Hi guys, I'm having some trouble getting a query to return the information I require. Tables: EventMaster holds the venue details Event holds the date of the event and some other irrelevant information, linked to EventMaster by EventMasterID Results holds the finishing positions for the event plus indicators for bonus points, linked to...
16
2393
by: laverdir | last post by:
<? $query = "SELECT " . $this->tabela3 . ".id, " . $this->tabela3 . ".naziv, " . $this->tabela3 . ".spisatelj, " . $this->tabela3 . ".najava, " . " DATE_FORMAT(" . $this->tabela3 . ".vrijeme_stavljanja, '%e. %c. %Y. %k:%i') FROM " . $this->tabela3 . ", " . $this->tabela2 . " AS xref WHERE " . $this->tabela3 . ".id=xref.spis_id AND...
3
3844
by: Sheldon | last post by:
I have the following query expression - Like Format((!!)) & "/*/" & (! !) which would translate to e.g. 04/*/2007 if someone is running a report for last month. The above expression is part of a Where clause for a date field. It works fine in Access 2000 and pulls out the appropriate # of records but in Access 2003, this expression...
6
6290
craigfr
by: craigfr | last post by:
I am making a graph comparing last year's defect data with YTD defect data. Our fiscal year starts Nov.1 and ends Oct.31. To get the YTD, I started used a simple date serial criteria: Between DateSerial(Year(Date())-1,11,1) And Date() This works, but only for 10 months out of the year. If your'e in December, it will calculate the YTD from...
12
5511
by: dtsmith1984 | last post by:
I have a form that i want to be able to reassign a specific piece of software to a different machine. Form specs: Software Title: cbotitle CDKEY: cbocdkey Old Assignment: cbooldassignment New Assignment: cbonewassignment I've built a query that pulls a list of all the computers the software is currently assigned to dynamically by...
4
2449
by: Andrus | last post by:
DLinq objects: class Item { string ItemCode {get;set;} // primary key } class Stock { // primary key is (ItemCode,StockId) string ItemCode {get;set;} string Quantity { get; set; } string StockId { get; set; }
0
7584
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...
0
8108
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...
1
7644
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6260
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
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...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
925
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...

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.