stringVar result; IF Length ({rptDealerSummaryReport.BusinessPhone}) = 10 Then result := Mid ({rptDealerSummaryReport.BusinessPhone}, 1, 3) + "-" + Mid ({rptDealerSummaryReport.BusinessPhone}, 4, 3) + "-" + Mid ({rptDealerSummaryReport.BusinessPhone}, 8) Else result := {rptDealerSummaryReport.BusinessPhone} IF Length({rptDealerSummaryReport.BusinessExt}) > 0 Then result := result + " x" + {rptDealerSummaryReport.BusinessExt}I get this error before it hits the second IF statement: "The remaining text does not appear to be part of the formula."