Hi
I want if rcount is 0 message should appear & form should get Unloaded . but it is giving me the above error.
Private Sub Form_Load()
If rcount = 0 Then
MsgBox "No Pending Transaction", vbOKOnly
Unload Me
Else
Centre Me
End If
End SUb
Thanks
I want if rcount is 0 message should appear & form should get Unloaded . but it is giving me the above error.
Private Sub Form_Load()
If rcount = 0 Then
MsgBox "No Pending Transaction", vbOKOnly
Unload Me
Else
Centre Me
End If
End SUb
Thanks