We have two tables that need fields to be displayed in the application in various pages/screens and on reports as CONCAT of separate fields (concat within the same table)
1) Customer-table: FirstName+' '+(first-character([MiddleName])+' ' if not-null)+LastName intended result: "John Doe" -or- "John M Doe"
(Note: similar situation with AddrLine1+AddrLine2+City+State+Zip+Zip4)
2) Vehicle-table: VYear+' '+VMake+' '+VModel+' : '+VName intended result: "2008 Ford F350 : Blue" -or- "2008 Ford F350 : #45"
I see two ways to do these types of display outputs.
a) Create server-side VB-function to properly format the display from the field-values (some fields may be null, remember)
b) Have a DB-column in each of these tables such as [Name4Display] and [VName4Display] that are updated appropriately with INSERT- and UPDATE-triggers.
Of course your comments are welcome and welcome additional solutions to this question.
Thanks...J.