I'm simply adding a little bit of code to a control source in a report, but once I'm done, it keeps saying that I can't have an expression longer than 2,048 characters in control source, which it isn't. You don't have to read this, but if you do a cut and paste, i'm pretty sure that you'll find that the character count of this is less than 1,500 chars. It's driving me nuts. All I want it do is have the first name of a nun follow "Sister" or "Sr." rather than the last.
=Trim("Dear " & (IIf([Enter Contact Type, if any, to address] Is Null,[sName],(IIf([Enter Contact Type, if any, to address]="Principal",(IIf([TypeName] Is Not Null,(IIf([DearLine] Is Not Null,[DearLine],[Salutation] & " " & IIf(InStr([Salutation], "sister"
or InStr([Salutation],"sr"
,[FirstName],[LastName]))),"Principal"
),(IIf([Enter Contact Type, if any, to address]="financial administrator",(IIf([TypeName] Is Not Null,(IIf([DearLine] Is Not Null,[DearLine],[Salutation] & " " & IIf(InStr([Salutation], "sister"
or InStr([Salutation],"sr"
,[FirstName],[LastName]))),"Financial Administrator"
),(IIf([Enter Contact Type, if any, to address]="admissions director",(IIf([TypeName] Is Not Null,(IIf([DearLine] Is Not Null,[DearLine],[Salutation] & " " & IIf(InStr([Salutation], "sister"
or InStr([Salutation],"sr"
,[FirstName],[LastName]))),"Admissions Director"
),(IIf([Enter Contact Type, if any, to address]="main contact" Or [Enter Contact Type, if any, to address]="checks Addressee",(IIf([TypeName] Is Not Null,(IIf([DearLine] Is Not Null,[DearLine],[Salutation] & " " & IIf(InStr([Salutation], "sister"
or InStr([Salutation],"sr"
,[FirstName],[LastName]))),"Principal"
))))))))))) & ":"
Any help would be much appreciated.
-n-
=Trim("Dear " & (IIf([Enter Contact Type, if any, to address] Is Null,[sName],(IIf([Enter Contact Type, if any, to address]="Principal",(IIf([TypeName] Is Not Null,(IIf([DearLine] Is Not Null,[DearLine],[Salutation] & " " & IIf(InStr([Salutation], "sister"
Any help would be much appreciated.
-n-