Is it possible to open and filter a REPORT based on a criteria as you would a form?
If so would command be similar to:
Private Sub OpenReport_Clic k()
On Error GoTo Err_ViewDev_Cli ck
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "REPORT"
stLinkCriteria = "[siteID]=" & Me![siteID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_ViewDev_Cl ick:
Exit Sub
Err_ViewDev_Cli ck:
MsgBox Err.Description
Resume Exit_ViewDev_Cl ick
End Sub
If so would command be similar to:
Private Sub OpenReport_Clic k()
On Error GoTo Err_ViewDev_Cli ck
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "REPORT"
stLinkCriteria = "[siteID]=" & Me![siteID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_ViewDev_Cl ick:
Exit Sub
Err_ViewDev_Cli ck:
MsgBox Err.Description
Resume Exit_ViewDev_Cl ick
End Sub
Comment