Hi All,
I am here today again. Now with a print issue. I am receiving an error message that is listed in the subject. Listed below is the current code that I currently have. I know this is a quick fix, but I can not figure it out for the world.
Option Explicit
Private Sub CommandClose_Click()
DoCmd.Close acReport, "rpt_PubGeneralRecord", acSavePrompt
End Sub
Private Sub CommandPrint_Click()
Dim intLeft As Integer
Dim intTop As Integer
intTop = CommandPrint.Top
intLeft = CommandPrint.Left
[highlight]DoCmd.PrintOut , , , , 1[/highlight]
CommandPrint.Top = intTop
CommandPrint.Left = intLeft
DoEvents
End Sub
Private Sub Report_Load()
Report.Caption = "General Report for " & [Forms]![form_View]!ComboPubName.Column(1)
End Sub
Any help would be appreciated!!!!!
I am here today again. Now with a print issue. I am receiving an error message that is listed in the subject. Listed below is the current code that I currently have. I know this is a quick fix, but I can not figure it out for the world.
Option Explicit
Private Sub CommandClose_Click()
DoCmd.Close acReport, "rpt_PubGeneralRecord", acSavePrompt
End Sub
Private Sub CommandPrint_Click()
Dim intLeft As Integer
Dim intTop As Integer
intTop = CommandPrint.Top
intLeft = CommandPrint.Left
[highlight]DoCmd.PrintOut , , , , 1[/highlight]
CommandPrint.Top = intTop
CommandPrint.Left = intLeft
DoEvents
End Sub
Private Sub Report_Load()
Report.Caption = "General Report for " & [Forms]![form_View]!ComboPubName.Column(1)
End Sub
Any help would be appreciated!!!!!