Button to delete record on data*** subform
- From: "Robert" <cpq1bcle[REMOVE]@verizon.net>
- Date: Sat, 24 May 2008 14:54:42 -0400
I have a main form with a data*** subform on it. Records can be deleted
from the subform by selecting the record and then clicking on the delete
icon on the toolbar. But I want a custom delete button. And you can't put
a button on a data***. So if I put a button on the main form, what code
do I use to delete the selected record(s) on the data*** subform? The
following when placed in the button's on click event do not work:
DoCmd.RunCommand acCmdDeleteRecord
and
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Robert
.
- Prev by Date: Re: Filtering problem
- Next by Date: Re: Combination box
- Previous by thread: Calculation field on a main form displays Error
- Next by thread: Re: Button to delete record on data*** subform
- Index(es):