rpt is the report object (I am scripting within an ActiveReport object).