Thanks for posting the SQL view. I don't recall the previous messages so I can't provide much assistance. Which field is the "current last name" and which is the maiden name? How do you want to sort the report?
What fields do you want to display in the report?
Regards,
Duane
From: MSAccessProfessionals@groups.io <MSAccessProfessionals@groups.io> on behalf of Russ <grizpatch@twc.com>
Sent: Sunday, June 14, 2020 8:33 PM
To: MSAccessProfessionals@groups.io <MSAccessProfessionals@groups.io>
Subject: Re: [MSAccessProfessionals] Sorting and displaying men and women last names and maiden names
Sent: Sunday, June 14, 2020 8:33 PM
To: MSAccessProfessionals@groups.io <MSAccessProfessionals@groups.io>
Subject: Re: [MSAccessProfessionals] Sorting and displaying men and women last names and maiden names
Here is the SQL view of the query for the deceased report. SchNm is the last name prior to marriage aka maiden name.
Re: Sorting and displaying men and women last names and maiden names
SELECT [First Name] & " "+Nz([SchNm],[LastName]) AS FullName, NameList.LastName, Nz([SchNm],[LastName]) AS SortName, NameList.SchNm
FROM NameList
WHERE (((NameList.Deceased)=Yes))
ORDER BY NameList.LastName, NameList.SchNm;
Tidak ada komentar:
Posting Komentar