A
AndreasO
I like to preview this report first, what do I need to change:
Private Sub Command42_Click()
On Error GoTo Err_Command42_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Main Info Source Report"
stLinkCriteria = "[Project ID]=" & Me![Project ID]
DoCmd.OpenReport stDocName, , , stLinkCriteria
Exit_Command42_Click:
Exit Sub
Err_Command42_Click:
MsgBox Err.Description
Resume Exit_Command42_Click
End Sub
Thanks for your help
Andreas
Private Sub Command42_Click()
On Error GoTo Err_Command42_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Main Info Source Report"
stLinkCriteria = "[Project ID]=" & Me![Project ID]
DoCmd.OpenReport stDocName, , , stLinkCriteria
Exit_Command42_Click:
Exit Sub
Err_Command42_Click:
MsgBox Err.Description
Resume Exit_Command42_Click
End Sub
Thanks for your help
Andreas