Why is this not working????
When I trace thru this code all 4 line are executed but the open event is not canceled....
Private Sub Form_Open(Cancel As Integer)
If Me.Recordset.RecordCount = 0 Then
Cancel = True
DoCmd.CancelEvent
End If
:
other code
:
end sub
TIA
Jeff
When I trace thru this code all 4 line are executed but the open event is not canceled....
Private Sub Form_Open(Cancel As Integer)
If Me.Recordset.RecordCount = 0 Then
Cancel = True
DoCmd.CancelEvent
End If
:
other code
:
end sub
TIA
Jeff