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  

Different results same query



 
 
Thread Tools Display Modes
  #1  
Old January 9th, 2007, 05:26 PM posted to microsoft.public.access.queries
BAC
external usenet poster
 
Posts: 55
Default Different results same query

Win XP Pro, Office 2003 pro

I created an Access query using the query grid to read an ODBC database: SQL
WHERE as follows:

WHERE (((GL_BILLING_ENTRIES_DETAIL.GL_DET_GL) In
("11511250","11561260","11511251","11561261","1151 1230","11561255","11511245","11561275")))

The query returns records with a GL_DET_GL other than those listed in the
"IN()" clause.

Converting to a SQL Specific - Pass through Query, however, and changing
the Double-quotes (") to Single-quotes (') in the sql string yields the
correct list of records containing only the requested GL Numbers!

How is that possible and how do I ensure my ODBC queries run locally will
return the correct records?


BAC



 




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 01:52 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.