I have a strange situation and hope someone can shed some light on this.
I have a form, which is based on a main table, and a sub form based on query with a 1toM relationship with the main table. This form works well except for the fact that when the form has its pop up property set to 'yes', I am unable to delete a full record (including its relationship). But when I turn this property off, I can delete a record. I am using a command button (I created through the Wizard) for deletion of record. This command button has the following code attached.
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Looks like it is to do with this generic code. Could we amend the code to enable me to delete the record whether or not it is a pop up form?
Cheers
I have a form, which is based on a main table, and a sub form based on query with a 1toM relationship with the main table. This form works well except for the fact that when the form has its pop up property set to 'yes', I am unable to delete a full record (including its relationship). But when I turn this property off, I can delete a record. I am using a command button (I created through the Wizard) for deletion of record. This command button has the following code attached.
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Looks like it is to do with this generic code. Could we amend the code to enable me to delete the record whether or not it is a pop up form?
Cheers