In a sub form I don't want any records to be physically deleted to maintain data integrity (foreign key) therefore I have a field "deleted" (boolean) in the subfrom.
In the "on delete" of the subform, I set the "deleted" field to yes, and docmd cancel Event, to stop the record being deleted. This works fine but, I cannot seem to requery the sub form in this same procedure. (The recordsource of the sub form is set to show only records where "deleted"=No.)
Error message 3246 - Operation not supported in Transaction.
I have tried all the versions of
me.parent.formname.subformname.form.requery
me.requery ( I am in the sub form so me.requery should work??)
forms!Mainform!subform.form.requery
Any Ideas how I can get this record marked "deleted" to dissappear without having to close and open the form again?
Any help most appreciated!
In the "on delete" of the subform, I set the "deleted" field to yes, and docmd cancel Event, to stop the record being deleted. This works fine but, I cannot seem to requery the sub form in this same procedure. (The recordsource of the sub form is set to show only records where "deleted"=No.)
Error message 3246 - Operation not supported in Transaction.
I have tried all the versions of
me.parent.formname.subformname.form.requery
me.requery ( I am in the sub form so me.requery should work??)
forms!Mainform!subform.form.requery
Any Ideas how I can get this record marked "deleted" to dissappear without having to close and open the form again?
Any help most appreciated!