H
Harmony
I want the user to push a button and it prompt ask them if
they want to print a report. If they click yes, I want the
report to print, but I cannot get it to work. My report
name is R_ALetter. Below is my code, what did I do wrong?
Private Sub Command22_Click()
Dim Reponse
Dim MyString
Response = MsgBox("Do you want to print the Welcome
Letter?", vbYesNo, "Question")
If Response = vbYes Then
MyString = ObjAccess.DoCmd.OpenReport("R_ALetters",
acViewReport)
Else: MyString = "No"
End If
End Sub
they want to print a report. If they click yes, I want the
report to print, but I cannot get it to work. My report
name is R_ALetter. Below is my code, what did I do wrong?
Private Sub Command22_Click()
Dim Reponse
Dim MyString
Response = MsgBox("Do you want to print the Welcome
Letter?", vbYesNo, "Question")
If Response = vbYes Then
MyString = ObjAccess.DoCmd.OpenReport("R_ALetters",
acViewReport)
Else: MyString = "No"
End If
End Sub