chuckcoleman
Registered User.
- Local time
- Today, 11:35
- Joined
- Aug 20, 2010
- Messages
- 380
I have a text box that has the following code in it. After a field, I want a "carriage return and a line feed" to put the next field on a new line. If I leave off the "&" before the +Chr(13)+Chr(10) when I run the report, that text box shows a #Type. If I leave remove the "&" before the +Chr(13)+Chr(10) it doesn't move the next field to a new line. What am I doing wrong?
=IIf([Forms]![Work Order Form]![Frame51]=2,"Proposal Nbr: " & [WorkNbr] & +Chr(13)+Chr(10),IIf([Forms]![Work Order Form]![Frame51]=1,"Work Order Nbr: " & [WorkNbr] & +Chr(13)+Chr(10),IIf([Forms]![Work Order Form]![Frame51]=3,"Change Order Nbr: " & [WorkNbr] & +Chr(13)+Chr(10)))) & "Appt Time: " & [AppointmentTime] & +Chr(13)+Chr(10) & IIf([WOLocation] Is Not Null,"Location: " & [WOLocation] & +Chr(13)+Chr(10),"") & IIf([Sub] Is Not Null,[Sub] & +Chr(13)+Chr(10),"") & "Zones: " & [Zone] & +Chr(13)+Chr(10) & "Notes=>" & [Other]
Thank you for your help! Chuck
=IIf([Forms]![Work Order Form]![Frame51]=2,"Proposal Nbr: " & [WorkNbr] & +Chr(13)+Chr(10),IIf([Forms]![Work Order Form]![Frame51]=1,"Work Order Nbr: " & [WorkNbr] & +Chr(13)+Chr(10),IIf([Forms]![Work Order Form]![Frame51]=3,"Change Order Nbr: " & [WorkNbr] & +Chr(13)+Chr(10)))) & "Appt Time: " & [AppointmentTime] & +Chr(13)+Chr(10) & IIf([WOLocation] Is Not Null,"Location: " & [WOLocation] & +Chr(13)+Chr(10),"") & IIf([Sub] Is Not Null,[Sub] & +Chr(13)+Chr(10),"") & "Zones: " & [Zone] & +Chr(13)+Chr(10) & "Notes=>" & [Other]
Thank you for your help! Chuck