Hi all,
I have a form which uses a subform.
The main form finds a doctors record eg name, assignmentno (prim key), and the hospital they work at. The subform shows their sick record, when i enter a value into the "daysleave" field on the subform and then delete it and go to go off the the subform, it leaves the new record there and pops up saying you cannot enter a null value in this field as it is a required field, i know that i have set this to be required, this also happens with the other required fields on the subform.
Can i put code on the lose focus event of this field so that, if all field values on the subform new record are null then delete the subform new record so this message doesnt keep popping up.
Thanks in advance!!
I have a form which uses a subform.
The main form finds a doctors record eg name, assignmentno (prim key), and the hospital they work at. The subform shows their sick record, when i enter a value into the "daysleave" field on the subform and then delete it and go to go off the the subform, it leaves the new record there and pops up saying you cannot enter a null value in this field as it is a required field, i know that i have set this to be required, this also happens with the other required fields on the subform.
Can i put code on the lose focus event of this field so that, if all field values on the subform new record are null then delete the subform new record so this message doesnt keep popping up.
Thanks in advance!!