TIA for any help...
I have a main form, on which I have a tab control, and each tab has a subform.
On the main form, I have command buttons in the footer ('Add New Record', 'Save Current Record', 'Delete Current Record') to do the appropriate things in each tab/subform, but the code behind the buttons, for example the 'Delete Current Record' button:
~~~~~~~~~~~
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
~~~~~~~~~~~
doesn't work. I suspect I'm not referencing things in my tab control and/or subforms correctly, but no syntax I've tried will work and I'm hopelessly confused (which is not abnormal) and frustrated.
Hope I've explained that coherently enough. Any advice?
I have a main form, on which I have a tab control, and each tab has a subform.
On the main form, I have command buttons in the footer ('Add New Record', 'Save Current Record', 'Delete Current Record') to do the appropriate things in each tab/subform, but the code behind the buttons, for example the 'Delete Current Record' button:
~~~~~~~~~~~
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
~~~~~~~~~~~
doesn't work. I suspect I'm not referencing things in my tab control and/or subforms correctly, but no syntax I've tried will work and I'm hopelessly confused (which is not abnormal) and frustrated.
Hope I've explained that coherently enough. Any advice?