Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / November 2005

Tip: Looking for answers? Try searching our database.

if exists query in ms access

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
devalbhavsar@gmail.com - 24 Nov 2005 09:25 GMT
I want to check weather records avail in some table on some conditions
, right now i have to use the select count(*) in ms access,

performance point of view i can use if exists in ms sql, is there any
way we can do it in ms access also.

with regards
deval bhavsar
Allen Browne - 24 Nov 2005 09:59 GMT
You can use a subquery in the WHERE clause to see if any match exists in
another table.

Example:
SELECT Table1.* FROM Table1
WHERE EXISTS (SELECT ID FROM Table2
   WHERE Table2.ID = Table1.ID);

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

>I want to check weather records avail in some table on some conditions
> , right now i have to use the select count(*) in ms access,
>
> performance point of view i can use if exists in ms sql, is there any
> way we can do it in ms access also.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.