Rather then use the On No Data Event, I would use the OnActivate event with the following code:
CODE
Dim strMsg As String
Dim strTitle As String
strMsg = "No Records Returned"
strTitle = "No Records Returned"
If Me.Report.HasData Then
Exit Sub
Else
MsgBox strMsg, vbOKOnly + vbExclamation, strTitle
DoCmd.close acReport, Me.Name
End If
On your form where you are opening the report use:
CODE
DoCmd.OpenReport RptName, acViewPreview
HTH.