Okay, this one is driving me crazy. I'm trying to open a report with pop-up form. When the report opens, I want the form to stay loaded, but hidden. I'm using Me.Visible = False, but it's not working. Here is my code:
Code:
On Error GoTo SubError
'Open Report
DoCmd.OpenReport "rptCPUWeeklySummary", acViewPreview, , "Year([Month Ending Date]) > " _
& Year(Me.txtMonthEnding) - 2
SubExit:
Me.Visible = False
Exit Sub
SubError:
MsgBox Error$
GoTo SubExit