Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

IN syntax in access

Posted on 2011-02-19
6
Medium Priority
?
283 Views
Last Modified: 2012-05-11
is t-sql's IN, NOT IN syntax work in access sql the same way?

thanks
0
Comment
Question by:anushahanna
6 Comments
 
LVL 11

Accepted Solution

by:
rowansmith earned 668 total points
ID: 34936078
Yes.  It is exactly the same.

See : http://msdn.microsoft.com/en-us/library/bb208859(v=office.12).aspx

-Rowan
0
 
LVL 11

Expert Comment

by:rowansmith
ID: 34936086
However I should clarify that you can not use "in" with another select statement in access (as you can with T-SQL).

eg:  select a from tabX where a in (select a from tabY)

Will not work in access.
0
 
LVL 77

Assisted Solution

by:peter57r
peter57r earned 668 total points
ID: 34936135
rowansmith,

select a from tabX where a in (select a from tabY)

...will definitely work in Access, assuming the 'a' fields are compatible.
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
LVL 85

Assisted Solution

by:Scott McDaniel (Microsoft Access MVP - EE MVE )
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 664 total points
ID: 34937119
Ditto what Peter said; I use the IN keyword frequently in Access with a sub-select.
0
 
LVL 11

Expert Comment

by:rowansmith
ID: 34938449
Agreed. My mistake.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 34939972
Thank you experts.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question