Hi Tony,
Could you post your SQL Syntax for review.
Here are examples out of Northwind that work just fine:
SELECT Orders.OrderID, Orders.CustomerID
FROM Orders
WHERE (((Orders.OrderID) In ([value1])) AND ((Orders.CustomerID) In
([customer])));
SELECT Orders.OrderID, Orders.CustomerID
FROM Orders
WHERE (((Orders.OrderID) In ([value1],[value2])));
I hope this helps! If you have additional questions on this topic, please
respond back to this posting.
Regards,
Eric Butts
Microsoft Access Support
(e-mail address removed)
"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
<
http://www.microsoft.com/security/security_bulletins/ms03-026.asp> and/or
to visit Windows Update at <
http://windowsupdate.microsoft.com/> to install
the patch. Running the SCAN program from the Windows Update site will help
to insure you are current with all security patches, not just MS03-026."
This posting is provided "AS IS" with no warranties, and confers no rights
--------------------
| Content-Class: urn:content-classes:message
| From: "Tony" <
[email protected]>
| Sender: "Tony" <
[email protected]>
| Subject: In operator question
| Date: Tue, 21 Sep 2004 14:45:40 -0700
| Lines: 12
| Message-ID: <
[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| thread-index: AcSgJFbNMdZ9Bkz8T9y9ckcAEcvpog==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Newsgroups: microsoft.public.access.queries
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.access.queries:214049
| NNTP-Posting-Host: tk2msftngxa14.phx.gbl 10.40.1.166
| X-Tomcat-NG: microsoft.public.access.queries
|
| Hi,
|
| Does anyone know how to use the In() operator in a
| parameterized option in the sql where clause in MS Access
| 2000. For some reasons, When I try to use the In()
| operator and test it with a list of values, I get 0
| records return. However, if I only enter one value, a
| correct number of records returned.
|
| Thanks in advance.
| Tony
|
|