[mso] Re: Access :VSMail mx3

  • From: James LaBorde <jlaborde@xxxxxxxxx>
  • To: "'mso@xxxxxxxxxxxxx'" <mso@xxxxxxxxxxxxx>
  • Date: Fri, 19 Sep 2003 14:53:53 -0700

Glenda,

I think that your problem is that you appear to only be referencing the
table once rather than twice when you want to get the second set of data.
Try linking to a second instance of the table joining on fields that will be
the same.  Try this out:

[mstFPlus].[Last], [mstFPlus].[first], [mstFPlus].[City], [mstFPlus].[state]
In(Select [mstFPlus].[L_Name] from [mstFPlus] join [mstFplus] as mstFPlus1
where [mstFPlus].[SCity] = [mstFPlus1].[SCity] and
[mstFPlus].[state]=[mstFPlus1].[state] and Left([mstFPlus].[f_name], 3) =
Left([mstFPlus1].[f_name],3) Having Count(*)>1)

I think this should probably do the trick.

James

-----Original Message-----
From: Glenda Wells [mailto:gwells@xxxxxxxxxxx]
Sent: Friday, September 19, 2003 2:10 PM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Access :VSMail mx3


Hi All.
I'm trying to find duplicate information in an Access table using the
below in queries. I must have something wrong because in two of the
examples, Katie Lakerston and Katherine Lakerston should match, but it's
not happening.  

Any advice appreciated. /g


Last, First, City & State
In (SELECT [L_NAME] FROM [mstFPlus] As Tmp GROUP BY
[L_NAME],[F_NAME],[SCITY],[STATE] HAVING Count(*)>1  And
LEFT([F_NAME],3) = LEFT([mstFPlus].[F_NAME],3) And [SCITY] =
[mstFPlus].[SCITY] And [STATE] = [mstFPlus].[STATE])



Last, First, Birth_DT & State
In (SELECT [L_NAME] FROM [mstFPlus] As Tmp GROUP BY
[L_NAME],[F_NAME],[BIRTH_DT],[STATE] HAVING Count(*)>1  And
LEFT([F_NAME],3) = LEFT([mstFPlus].[F_NAME],3) And
[BIRTH_DT]=[mstFPlus].[BIRTH_DT] And [STATE]=[mstFPlus].[STATE])



Last, First & Zip
In (SELECT [L_NAME] FROM [mstFPlus] As Tmp GROUP BY
[L_NAME],[F_NAME],[SZIP_CODE] HAVING Count(*)>1  And LEFT([F_NAME],3) =
LEFT([mstFPlus].[F_NAME],3) And LEFT([SZIP_CODE],5) =
LEFT([mstFPlus].[SZIP_CODE],5))

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes)
in the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also
allow you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation
with instructions.  Once you are a member of the files group, you can go
here to upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: