A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Office » General Discussions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

MSQuery - Criteria to remove multiple records based on a single re



 
 
Thread Tools Display Modes
  #1  
Old January 23rd, 2009, 05:24 PM posted to microsoft.public.office.misc
Jay Deigh
external usenet poster
 
Posts: 1
Default MSQuery - Criteria to remove multiple records based on a single re

I have two tables that I'm linking in MSQuery.

Table 1 has Customer Number and Address data.
Table 2 has Customer Number and various Flags (NoMail, Deceased, Derogatory
and many other Flags). Each Flag is stored as a separate record. So
customer 1234 may have 3 (or more) flags loaded. Some customers have no
flags.

When I join these two tables with a Left Outer join so that I retain all
Customer Address records, I end up having multiple Address Records for those
customers who have Multiple Flags.

1. Is there a way to force only one address record per customer?
2. Is there a way to insert a criteria that removes the customer from the
address list if the customer has a specific flag? I do not need to remove
the customer if s/he has ANY flag.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:58 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.