Hi,
Has anyone come across a print report macro that updates any changes you make on a main form?
The issue I have is I have a pivot chart called [frmMIN_PivotChart]
It is a sub form in the main form [frmMain]
I have a cammand button that prints the report [rptMIN]
However when you make changes to [frmMIN_PivotChart] on [frmMain] and hit the command button it does not print the changes.
I made the initial macro to code below, can I do it in a macro or can I alter the code below?
Private Sub cmdPrintMin_Click()
On Error GoTo Err_cmdPrintMin_Click
Dim stDocName As String
stDocName = "rptMIN"
DoCmd.OpenReport stDocName, acNormal
Exit_cmdPrintMin_Click:
Exit Sub
Err_cmdPrintMin_Click:
MsgBox Err.Description
Resume Exit_cmdPrintMin_Click
End Sub