Unanswered: Printing a single record to a report from a form
Private Sub Preview_Report_Click()
On Error GoTo Err_Preview_Report_Click
Dim stDocName As String
Dim strWhere As String
stDocName = "Training Record"
strWhere = "[Employee Name 2] = " & Me![Employee Name 2]
DoCmd.OpenReport stDocName, acPreview, , strWhere
Is the code I'm using to print a single record to a report from a form. It works however it raises a message box titled "Enter Parameter Value" and displays the "Employee Name 2" value of the current record.
My question is how do I change what is displayed in this message box to something more informative like "Please enter Employee's surname" ?