meenctg
Learn24bd
- Local time
- Tomorrow, 03:21
- Joined
- May 8, 2012
- Messages
- 133
I have two form base on query. where i one has a parameter another has two parameter
as like
First one
Enter your value:
Second one
Enter your id:
Enter your code:
For the first form i set the code at Form open
It works
but if i set the code for two parameter values the mean second form
it works but it gives another message that like form open action was canceled.
What's the problem? any one tell me that how can i solve this problem.
as like
First one
Enter your value:
Second one
Enter your id:
Enter your code:
For the first form i set the code at Form open
Code:
Private Sub Form_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
It works
but if i set the code for two parameter values the mean second form
it works but it gives another message that like form open action was canceled.
What's the problem? any one tell me that how can i solve this problem.