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 / October 2007

Tip: Looking for answers? Try searching our database.

How to implement a query that return data with no match

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
eclypz - 26 Oct 2007 16:17 GMT
Hi, i have read some posts of inner join and outer join, but no one
could help me to solve my problem :(

I have 2 tables

1) tblRecords (having, article; User;date in; date out; service)
2) tblUsers (user)

what i need is to select from tblRecords those records that does not
match the users in the tblUsers, so if for example i have 20 records
in the table 1 (all from diferent users) and in table 2 i have 3
users, the result will be like if i delete from tblRecords the records
that match tue users in tblUsers. But i don't want to delete those
records... so how can i make a select query to help me with this?
KARL DEWEY - 26 Oct 2007 17:09 GMT
I think this is what you want (Unmatched query) --
SELECT tblRecords.User, tblRecords.article, tblRecords.[date in],
tblRecords.[date out], tblRecords.service
FROM tblRecords LEFT JOIN tblUsers ON tblRecords.User = tblUsers.User
WHERE (((tblUsers.User) Is Null));

Signature

KARL DEWEY
Build a little - Test a little

> Hi, i have read some posts of inner join and outer join, but no one
> could help me to solve my problem :(
[quoted text clipped - 10 lines]
> that match tue users in tblUsers. But i don't want to delete those
> records... so how can i make a select query to help me with this?
eclypz - 26 Oct 2007 19:31 GMT
Yes :)

this is it!!! :)

thanx so much!

--
Egidio aka eclypz
 
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.