M
MuzicK622
I have a command button on a form that I want to use to print one or
two of four letters (reports) based on the criteria tied to the
persons account. Right now my statement is this:
Private Sub Print_Invitation_Click()
On Error GoTo Err_Print_Invitation_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Evaluator Invitation Letters"
DoCmd.OpenReport stDocName, , , stlLinkCriteria
stDocName = "FA Pre-Festival Evaluator Invitation Letters"
DoCmd.OpenReport stDocName, , , stlLinkCriteria
stDocName = "KT Evaluator Invitation Letters"
DoCmd.OpenReport stDocName, , , stlLinkCriteria
stDocName = "KT Pre-Festival Evaluator Invitation Letters"
DoCmd.OpenReport stDocName, , , stlLinkCriteria
Exit_Print_Invitation_Click:
Exit Sub
Err_Print_Invitation_Click:
MsgBox Err.Description
Resume Exit_Print_Invitation_Click
End Sub
I want it to only print the letter(s) that relate the the individual
account. Can this be done? (Bear with me, I don't know codes too well
yet!)
two of four letters (reports) based on the criteria tied to the
persons account. Right now my statement is this:
Private Sub Print_Invitation_Click()
On Error GoTo Err_Print_Invitation_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Evaluator Invitation Letters"
DoCmd.OpenReport stDocName, , , stlLinkCriteria
stDocName = "FA Pre-Festival Evaluator Invitation Letters"
DoCmd.OpenReport stDocName, , , stlLinkCriteria
stDocName = "KT Evaluator Invitation Letters"
DoCmd.OpenReport stDocName, , , stlLinkCriteria
stDocName = "KT Pre-Festival Evaluator Invitation Letters"
DoCmd.OpenReport stDocName, , , stlLinkCriteria
Exit_Print_Invitation_Click:
Exit Sub
Err_Print_Invitation_Click:
MsgBox Err.Description
Resume Exit_Print_Invitation_Click
End Sub
I want it to only print the letter(s) that relate the the individual
account. Can this be done? (Bear with me, I don't know codes too well
yet!)