Hi All...
This is my code:
Private Sub Form_Open(Cancel As Integer)
With CodeContextObject
If (.RecordsetClone.RecordCount = 0) Then
DoCmd.close
Beep
MsgBox "You have No Records for the mentioned Period", vbOKOnly + vbInformation, "No Records"
End If
End With
End Sub
Whenever I try to open any form with no records, the mentioned cod works perfectly.
After Installing Windows xp , this code don't work anymore.
It's giving me Runtime error 48.
Any help please
This is my code:
Private Sub Form_Open(Cancel As Integer)
With CodeContextObject
If (.RecordsetClone.RecordCount = 0) Then
DoCmd.close
Beep
MsgBox "You have No Records for the mentioned Period", vbOKOnly + vbInformation, "No Records"
End If
End With
End Sub
Whenever I try to open any form with no records, the mentioned cod works perfectly.
After Installing Windows xp , this code don't work anymore.
It's giving me Runtime error 48.
Any help please