Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > SQL In Statemen...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 30572 of 31576
Post > Topic >>

SQL In Statement with Variables?

by bcap <rayh@[EMAIL PROTECTED] > Jun 24, 2008 at 08:34 AM

Is it possible to create a SQL In statement using variables?

For example, here is what can be done:

SELECT Test.ID, Test.Desc
FROM Test
WHERE (((Test.ID) In (3,6,9,12)));


But, I would like to do something like this:

SELECT Test.ID, Test.Desc
FROM Test
WHERE (((Test.ID) In ([@[EMAIL PROTECTED]
)));

( I have a loop that will be passing the: 3,6,9,12 )

However, it does not work.  Am I missing something in the syntax or is
it I cannot do it this way?

Any thoughts and or advice is greatly appreciated.

Ray
 




 2 Posts in Topic:
SQL In Statement with Variables?
bcap <rayh@[EMAIL PROT  2008-06-24 08:34:38 
Re: SQL In Statement with Variables?
timmg <tmillsgroninger  2008-06-24 08:56:05 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 22:54:47 CST 2008.