meenctg
Learn24bd
- Local time
- Tomorrow, 04:56
- Joined
- May 8, 2012
- Messages
- 133
I create a VB program in my report that when search data won't exist then it 'll give "Your entered data is invalid or reult not found" but here a problem
that is Method or data number not found
My program
that is Method or data number not found
My program
Code:
Private Sub Report_Open(Cancel As Integer)
On Error Resume Next
If Me.RecordsetClone.RecordCount = 0 Then
DoCmd.CancelEvent
MsgBox "Your entered data is invalid or reult not found", , "Sorry!"
Exit Sub
End If
End Sub