C
ColeVet67 via AccessMonster.com
I have a DB continuous form with a button to display a form in print preview.
I need this button to only display the 1 form i am working with. If i press
the button all of the forms are available for print preview. They are listed
by JCN in the continuous form.
here is the code:
Private Sub Job_Details_BTn_Click()
On Error GoTo Err_Job_Details_BTn_Click
Dim stDocName As String
Dim Job_Control_Number As String
stDocName = "Open Status Board report by JCN"
DoCmd.OpenReport stDocName, acPreview, Job_Control_Number
Exit_Job_Details_BTn_Click:
Exit Sub
Err_Job_Details_BTn_Click:
MsgBox Err.Description
Resume Exit_Job_Details_BTn_Click
End Sub
Any help would be great
I need this button to only display the 1 form i am working with. If i press
the button all of the forms are available for print preview. They are listed
by JCN in the continuous form.
here is the code:
Private Sub Job_Details_BTn_Click()
On Error GoTo Err_Job_Details_BTn_Click
Dim stDocName As String
Dim Job_Control_Number As String
stDocName = "Open Status Board report by JCN"
DoCmd.OpenReport stDocName, acPreview, Job_Control_Number
Exit_Job_Details_BTn_Click:
Exit Sub
Err_Job_Details_BTn_Click:
MsgBox Err.Description
Resume Exit_Job_Details_BTn_Click
End Sub
Any help would be great