473,503 Members | 11,508 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bug in access query engine?

157 New Member
This SQL




returns these values




Anybody have an idea of what causes this?
Oct 20 '10 #1
5 1420
Stewart Ross
2,545 Recognized Expert Moderator Specialist
Strange behaviour indeed, Mr Deej. At first glance it looks like a bug. Does the same happen if you change the WHERE clause to
WHERE LSLGNR like 'TDO', or
WHERE LSLGNR IN ('TDO')?

It should make no difference to the end result, which of course should NOT include the value TDN as the equality version appears to be doing and for which I have no explanation. Testing the alternatives may help tie down what this 'bug' is.

-Stewart
Oct 20 '10 #2
MrDeej
157 New Member
Hmm.. same result when i us the "WHERE LSLGNR IN ('TDO')"

To make the confusing even bigger i get only 'TDO' result when i use the group by option in the query. This way i actually can use it, but still dont like Access having such bugs.
Oct 21 '10 #3
dsatino
393 Contributor
You need a GROUP BY clause. I know it doesn't seem to make sense that you would, but it has something to do with the way Access interacts with SQL servers.
Oct 21 '10 #4
MrDeej
157 New Member
For this database it worked with group by. It seems a little slower to show the results, but it works.

However, i have a different database on another computer, and this one works without the group by clause on a similar query to the same table/server. It is also some difference in service packs and hotfixes on that access installation.

Maybe it is a difference in somehow access communicates with sql server, OLE DB and ODBC ?
Oct 21 '10 #5
Stewart Ross
2,545 Recognized Expert Moderator Specialist
Only other thing to add is that you could try a pass-through query which lets SQL-server do the work; the Group By clause in the Access query will force Access to fetch all matching rows from the SQL-server back end before it can group the query (hence it will indeed be slower). I'd guess that the SELECT query in Access is not fetching all matching rows when executed, which really SQL-Server will do much faster.

-Stewart
Oct 22 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
2884
by: David | last post by:
Is the Access Data Engine part of the VS/.net install. Eg. I need to write a stand alone Form app for which a small DB would be helpful. IN VB 6, I would use ADO to call the Access engine. I...
0
1699
by: william_dudek | last post by:
I have a crystal report that works fine when run through Crystal, which I am triying to incorporate into a crystal report viewer. The report takes 1 parameter, which is either 0 or 1. If the...
0
1441
by: raf_z | last post by:
Hi, I think i'm doing something simple, although i may be wrong. I was able to load a Crystal report file up until today, and even now, its only 1 report that's misbehaving. I'll confess that i...
2
6483
by: Hardy Wang | last post by:
Hi, I have a console application to export crystal reports result to PDF. For one of my report file, when i call Export() function from my code, I get "unknown query engine error". I have Crystal...
1
4239
by: Frank Teunen | last post by:
Dear reader, I'm having a problem linking a dataset to a crystal report. I'm using next code. In between I explain my problem 'This code is to fill a dataset with the result of a stored...
12
5248
by: zwasdl | last post by:
Hi, I'm using MS Access to query against Oracle DB via ODBC. Is it possible to use HINT in Access? Thanks, Wei
2
8672
by: matt | last post by:
hello, i have an .RPT file that i am using to load a report via the ASP.NET CrystalReportViewer control. i dont include my .RPTs as embedded resources...instead i load the absolute path of the...
5
2721
by: Simon | last post by:
Dear reader, As far as I know you can work with Access on tree different ways: · Jet-Engine · MSDE
6
4373
by: jsacrey | last post by:
Hey everybody, got a secnario for ya that I need a bit of help with. Access 97 using linked tables from an SQL Server 2000 machine. I've created a simple query using two tables joined by one...
0
7212
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,...
0
7098
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...
1
7017
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...
0
7470
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...
0
4696
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...
0
3186
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...
0
3174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
405
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...

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.