Jumat, 12 Juni 2020

Re: [MSAccessProfessionals] Sorting and displaying men and women last names and maiden names

It might be easiest to create a column in you report's record source. 

Duane

Sent from my mobile

On Jun 12, 2020, at 6:13 PM, Russ <grizpatch@twc.com> wrote:

Duane,

Should I put that expression in the sort section of the query?

Russ

4:24pm   

Hi Russ,
 
You can create a new column in your query (or expression in a Control Source)
 
FullName: [FirstName] & " " + [MaidenName] & " " & [LastName]
 
 
If maiden name is null then there will still be only one space between first and last names.
 
Regards,
Duane
 

 

 

 
 Sevier Consulting Group
4:26pm   

That's how I handle it in all my applications for clients. Works just fine.

Ben Sevier
Sevier Consulting Group
(858) 449-0194
 
 

 

 

 
5:07pm   

"Sorting and displaying men and women last names and maiden names"

Yes Duane I have done that but how can I sort them by their original name?  You know, sorted by Last name of the men and at the same time sort them by the maiden name while displaying the women by first, maiden, last.

Russ

 

 
5:46pm   

Hi Russ,
 
Please keep the previous messages from the thread in your reply.
 
You can sort by this expression:
 
Nz([Maiden Name],[Last Name])
 
Duane
 
 

 

 

 
6:32pm   

Duane,
I will give it a try.  Thank you.
Russ



Hi Russ,

 

You can create a new column in your query (or expression in a Control Source)

 

FullName: [FirstName] & " " + [MaidenName] & " " & [LastName]

 

If maiden name is null then there will still be only one space between first and last names.

 

Regards,

Duane

 

Yes Duane I have done that but how can I sort them by their original name?  You know, sorted by Last name of the men and at the same time sort them by the maiden name while displaying the women by first, maiden, last.
Russ

You can sort by this expression:

 

Nz([Maiden Name],[Last Name])

Duane

 

 
6:43pm   

Where should I put that expression?  Where in the report?


6:32pm   

Duane,
I will give it a try.  Thank you.
Russ



Hi Russ,

 

You can create a new column in your query (or expression in a Control Source)

 

FullName: [FirstName] & " " + [MaidenName] & " " & [LastName]

 

If maiden name is null then there will still be only one space between first and last names.

 

Regards,

Duane

 

Yes Duane I have done that but how can I sort them by their original name?  You know, sorted by Last name of the men and at the same time sort them by the maiden name while displaying the women by first, maiden, last.
Russ

You can sort by this expression:

 

Nz([Maiden Name],[Last Name])

Duane

Tidak ada komentar:

Posting Komentar