[mso] SQL in Access

  • From: "Glenda Wells" <gwells@xxxxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Fri, 4 Mar 2005 14:08:29 -0500

I'm trying to write this little thing in Access SQL and can't seem to
get it.  
 
The table is called CADDR (communication address)
The table contains email addresses and telephone numbers. Can have
multiple of each.
Each address or number has it's own ID.
Like this:
 
personID, caddrID, caddrNmbr, caddrType
smthJhn, 00_01, (123) 456-7890, phone
smthJhn, 00_02, jsmith@xxxxxxxxx, email
smthJhn, 00_03, jsmith_01@xxxxxxxxx, email
 
What I need to pull via SQL or from a report linked directly to the
table is the email address with the highest caddrID. In this example,
the desired result is
 
smthJhn, 00_03, jsmith_01@xxxxxxxxxx
 
No matter what I do, I get #error, #number or both email addresses.
 
 
 
Any help appreciated.  /glenda
 
 
*************************************************************
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: