The following variable can be used to sort records by last name, first name, and middle name





StringVar Sort;



Sort :="";

if Not IsNull({Constituent.Last Name}) then Sort := {Constituent.Last Name} + ",  ";

if Not IsNull({Constituent.First Name}) then Sort := Sort + {Constituent.First Name} + ", ";

if Not IsNull({Constituent.Middle Name}) then Sort := Sort + {Constituent.Middle Name} + "  ";

Sort

Disclaimer: We provide programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes you are familiar with Structured Query Language and the tools used to create and modify SQL statements and Crystal Reports. Our Customer Support may help explain the functionality of a particular procedure, but we will not modify, or assist you with modifying, these examples to provide additional functionality.

 

We also offer customized Crystal Report templates. To learn more about our Custom Report Solutions, contact your account manager.