Hi Fran
You don't have to do this in 2 formulas ...and you have the variables declared as "shared"...this is only supposed to be done when you are 'sharing' variable values between a subreport and a main report...and I don't think that is what you want.
Also you wrapped double quotes around string fields or didn't assign anything to the variables and that is not kosher
So let us redo your formula and I will call it
@information
Whileprintingrecords;
//initialize the variables to null to start
StringVar Prefix := "";
StringVar Suffix := "";
StringVar Title := "";
StringVar Organization := "";
//the additional test is for users who put a blank space
//in for a field so they can get around a "NOT NULL"
//condition in the database.
If isnull({ScheduledPeople_ttx.Prefix}) or
length(trim({ScheduledPeople_ttx.Prefix})) <> 0 then
Prefix := {ScheduledPeople_ttx.DisplayName}
else
Prefix := {ScheduledPeople_ttx.Prefix} + " " +
{ScheduledPeople_ttx.DisplayName};
If isnull({ScheduledPeople_ttx.Suffix}) or
length(trim({ScheduledPeople_ttx.Suffix})) <> 0 then
Suffix := ""
else
Suffix := ", " + {ScheduledPeople_ttx.Suffix};
If isnull({ScheduledPeople_ttx.Title}) or
length(trim({ScheduledPeople_ttx.Title})) <> 0 then
Title := ""
else
Title := ", " + {ScheduledPeople_ttx.Title};
If isnull({ScheduledPeople_ttx.Organization}) or
length(trim({ScheduledPeople_ttx.Organization}))<> 0 then
Organization := ""
else
Organization := ", " + {ScheduledPeople_ttx.Organization};
Prefix + " " + Suffix + " " + Title + " " + Organization;
that should work...not I removed the brackets from the variables...they aren't necessary. this formula could be bullet proofed a bit more by testing {ScheduledPeople_ttx.DisplayName} for being null...but I'll leave it for you to do that if necessary
Jim Broadbent