J
John S. Ford, MD
I've created a frmMainForm with an embedded sbfSubForm. I have set the
fields for the underlying tables as "Required". Therefore, if frmMainForm
is closed without all the fields being filled in, an error message is
triggered. This works fine if the main form is closed using the "Close"
button at the topexcept for one thing.
sbfSubForm has a command button that saves the work and closes frmMainForm.
Unfortunately, when this happens, the above-mentioned error message ISN'T
triggered if fields are incompletely filled out. The form simply closes and
the record for that entry isn't saved.
Any ideas as to why the error isn't triggered when I use my own command
button but IS when I close it with the built in close button at the top,
right corner of the main form?
Thanks in advance!
John
fields for the underlying tables as "Required". Therefore, if frmMainForm
is closed without all the fields being filled in, an error message is
triggered. This works fine if the main form is closed using the "Close"
button at the topexcept for one thing.
sbfSubForm has a command button that saves the work and closes frmMainForm.
Unfortunately, when this happens, the above-mentioned error message ISN'T
triggered if fields are incompletely filled out. The form simply closes and
the record for that entry isn't saved.
Any ideas as to why the error isn't triggered when I use my own command
button but IS when I close it with the built in close button at the top,
right corner of the main form?
Thanks in advance!
John