prostheticHead
Registered User.
- Local time
- Today, 12:52
- Joined
- Dec 14, 2004
- Messages
- 42
i just added to my forms that use Quires
Private Sub Form_Open(Cancel As Integer)
If Me.RecordsetClone.RecordCount = 0 Then
MsgBox "ERROR: There are zero records in the data source!", vbInformation, "No Records Found"
DoCmd.Close acForm, Me.Name
End If
Problem is this code closes not just the would be empty form
it also close my start/Main form
as you can emagin this is more painfull then an empty form!
Private Sub Form_Open(Cancel As Integer)
If Me.RecordsetClone.RecordCount = 0 Then
MsgBox "ERROR: There are zero records in the data source!", vbInformation, "No Records Found"
DoCmd.Close acForm, Me.Name
End If
Problem is this code closes not just the would be empty form
it also close my start/Main form
as you can emagin this is more painfull then an empty form!