A
Alan
Hello,
I have a form with a subform on it that is used for data entry. What I'm
trying to accomplish is that when the main form is open, the user cannot
close it out until he/she fills something into the subform.
I thought of using a RecordSet.RecordCount method but is this the best way
to do it?
Here's the code I wrote but Access doesn't like it so I'm suspecting I'm
writing it incorrectly:
If Me!sbfmQuotePkgHeader.RecordsetClone.RecordCount = 0 Then
MsgBox ("The PACKAGE SUMMARY section is empty. Please fill in PACKAGE
SUMMARY.")
Else
DoCmd.Close
End If
Thanks in advance.
Alan
I have a form with a subform on it that is used for data entry. What I'm
trying to accomplish is that when the main form is open, the user cannot
close it out until he/she fills something into the subform.
I thought of using a RecordSet.RecordCount method but is this the best way
to do it?
Here's the code I wrote but Access doesn't like it so I'm suspecting I'm
writing it incorrectly:
If Me!sbfmQuotePkgHeader.RecordsetClone.RecordCount = 0 Then
MsgBox ("The PACKAGE SUMMARY section is empty. Please fill in PACKAGE
SUMMARY.")
Else
DoCmd.Close
End If
Thanks in advance.
Alan