J
Jason
I am having problems getting my yes/no message box to work:
I want a box to come up and if they press yes, it prints
the report, and if no, it cancels.
I am using this code:
Function MessageBox(Optional MsgBox)
Dim Response As Integer
Response = MsgBox("Are you sure you want to print the
report?", (36), "Print Confirm")
If Response = vbYes Then
DoCmd.OpenReport "Walklist Parameter", acViewNormal
Else
Exit Function
End If
End Function
But it keeps saying type mistmatch and is highliting the
response= line.
What am I doing wrong?
I want a box to come up and if they press yes, it prints
the report, and if no, it cancels.
I am using this code:
Function MessageBox(Optional MsgBox)
Dim Response As Integer
Response = MsgBox("Are you sure you want to print the
report?", (36), "Print Confirm")
If Response = vbYes Then
DoCmd.OpenReport "Walklist Parameter", acViewNormal
Else
Exit Function
End If
End Function
But it keeps saying type mistmatch and is highliting the
response= line.
What am I doing wrong?