L
leonie
Hi!
I want to have a message box pop up if the subform is empty. I have
the following code so far, which works, except it doesn't allow me to
choose the subform's combo box after the message box has been
displayed. Any ideas what I should do?
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Me.frmRisks.Form.RecordsetClone.RecordCount = 0 Then
Cancel = True
MsgBox "You have to enter a risk"
End If
End Sub
thanks!
I want to have a message box pop up if the subform is empty. I have
the following code so far, which works, except it doesn't allow me to
choose the subform's combo box after the message box has been
displayed. Any ideas what I should do?
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Me.frmRisks.Form.RecordsetClone.RecordCount = 0 Then
Cancel = True
MsgBox "You have to enter a risk"
End If
End Sub
thanks!