G
Guest
I have a report card printing application that I developed under Office 2000. It contains code that adjusts the margins for the different report card format reports based on values stored in a control table. I recently upgraded to Office XP (2002) and it stopped working. The R4 recordset contains the values for the form's top, left, and bottom margin values
Any ideas? Thanks
DoCmd.OpenReport ReportName:=Me.cboFormID.Column(1), View:=acDesign, windowmode:=acHidde
Reports(report1).Printer.LeftMargin = (R4("FormLeft") - 1) * 6
Reports(report1).Printer.TopMargin = (R4("FormTop") - 1) * 6
Reports(report1).Printer.BottomMargin = (R4("BottomMargin") - 1) * 6
DoCmd.Close objecttype:=acReport, objectname:=Me.cboFormID.Column(1), Save:=acSaveYe
Any ideas? Thanks
DoCmd.OpenReport ReportName:=Me.cboFormID.Column(1), View:=acDesign, windowmode:=acHidde
Reports(report1).Printer.LeftMargin = (R4("FormLeft") - 1) * 6
Reports(report1).Printer.TopMargin = (R4("FormTop") - 1) * 6
Reports(report1).Printer.BottomMargin = (R4("BottomMargin") - 1) * 6
DoCmd.Close objecttype:=acReport, objectname:=Me.cboFormID.Column(1), Save:=acSaveYe