Hello Al
i have already done that. i am tired of having duplicate items to manage.
because if i have 1 duplicate i actually need a total of four reports 2
filled and 2 blank. i have 2 frontends that are made for different purposes
and each needs the same form.
i have a total of 5 forms that i need this for in both frontends.
additionally each frontend may end up with an 8.5x11 and A4 papersize
version. so at this point i want to create a blank through code.
so here is my code on one of my reports:
Private Sub Report_Close()
On Error GoTo Err_Report_Close
DoCmd.ShowToolbar "ServDBReports", acToolbarNo
If Me.OpenArgs = "Blank" Then
Me.RecordSource = tblServiceReports
Forms!zzMAINFORM.Visible = True
Forms!pfrmReportMenu.Visible = True
Forms!pfrmBlankFormMenu.Visible = True
Else
Forms!zzMAINFORM.Visible = True
Forms!frmManageServiceReports.Visible = True
End If
Exit_Report_Close:
Exit Sub
Err_Report_Close:
MsgBox Err.Number & " " & Err.Description
Resume Exit_Report_Close
End Sub
Private Sub Report_Open(Cancel As Integer)
On Error GoTo Err_Report_Open
DoCmd.Maximize
DoCmd.ShowToolbar "ServDBReports", acToolbarYes
If Me.OpenArgs = "Blank" Then
Me.RecordSource = utblServiceReports
Forms!zzMAINFORM.Visible = False
Forms!pfrmReportMenu.Visible = False
Forms!pfrmBlankFormMenu.Visible = False
Else
Forms!zzMAINFORM.Visible = False
Forms!frmManageServiceReports.Visible = False
End If
Exit_Report_Open:
Exit Sub
Err_Report_Open:
MsgBox Err.Number & " " & Err.Description
Resume Exit_Report_Open
End Sub
you can see that i have a few forms that get in the way... in the other
frontend i have a totally different set of names for some forms. that means a
copy paste from one front end to the other isnt going to cut it either.
any insight would be helpful...