G
Guest
Hello,
I have a main form(frmMain) and a subform in it (subfrmCustomers) which has
data from a Table
There is a button in the main form(frmMain) which is do delete one or many
highlighted rows in the subfrmCustomers. The problem is I don't know how to
code to achieve this. I can figure the code for one selected row to be
deleted but really don't know how to delete for many selected rows of
records. That is where I need help on.
I tried:
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
But it doesnt work, I guess becuase after you highlight lots of rows & then
go to click the button on the Main form the Highlighted rows loses its focus.
Any help would be greatly appreciated.
Thank you,
Jeff
I have a main form(frmMain) and a subform in it (subfrmCustomers) which has
data from a Table
There is a button in the main form(frmMain) which is do delete one or many
highlighted rows in the subfrmCustomers. The problem is I don't know how to
code to achieve this. I can figure the code for one selected row to be
deleted but really don't know how to delete for many selected rows of
records. That is where I need help on.
I tried:
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
But it doesnt work, I guess becuase after you highlight lots of rows & then
go to click the button on the Main form the Highlighted rows loses its focus.
Any help would be greatly appreciated.
Thank you,
Jeff