D
Dawn
Hi
I have a macro in the OnClose event on a main form. The macro only contains 2 delete queries to delete records from two different tables , the main form and the subform. Each of the tables / forms contain a yes/no checkbox. When the user checks yes on the main form to delete this record, I have used setvalue to also turn the value to yes on the subform. The Macro OnClose contains the queries to delete any records that equal yes on either table. They delete the records in the main table, but not the subform/table unless I open and close the main form again or exit the database and reopen
I have tried putting the macro in After Update, On Deactivate, spliting the maco into seperate actions and the result is always the same. The reocrd is removed from the main table, but not the sub"table". Referential cascading deletes are not an option here. Would take to many paragraphs to explain. Why won't the query fire OnClose for the subtable/subform
Would really appreciate some input.
I have a macro in the OnClose event on a main form. The macro only contains 2 delete queries to delete records from two different tables , the main form and the subform. Each of the tables / forms contain a yes/no checkbox. When the user checks yes on the main form to delete this record, I have used setvalue to also turn the value to yes on the subform. The Macro OnClose contains the queries to delete any records that equal yes on either table. They delete the records in the main table, but not the subform/table unless I open and close the main form again or exit the database and reopen
I have tried putting the macro in After Update, On Deactivate, spliting the maco into seperate actions and the result is always the same. The reocrd is removed from the main table, but not the sub"table". Referential cascading deletes are not an option here. Would take to many paragraphs to explain. Why won't the query fire OnClose for the subtable/subform
Would really appreciate some input.