Can you have access decide which report to run depending on a value of a field
I have the following code on a button and iam trying to add to it to be able to
Print report 1 if SYSTEM TYPE = a
Print Report 2 if SYSTEM Type = b
up to report 10
as well as the following
Private Sub Command374_Click()
Dim strWhere As String
strWhere = "[ID]=" & Me.ID
DoCmd.OpenReport "Paperwork Checklist", acViewNormal, , strWhere
DoCmd.OpenReport "Paperwork Handover", acViewNormal, , strWhere
End Sub
Thanks
I have the following code on a button and iam trying to add to it to be able to
Print report 1 if SYSTEM TYPE = a
Print Report 2 if SYSTEM Type = b
up to report 10
as well as the following
Private Sub Command374_Click()
Dim strWhere As String
strWhere = "[ID]=" & Me.ID
DoCmd.OpenReport "Paperwork Checklist", acViewNormal, , strWhere
DoCmd.OpenReport "Paperwork Handover", acViewNormal, , strWhere
End Sub
Thanks