I have a list box which show all the Supplier PO Numbers, on the Right of the list box there is a command button called "Add", If user click the "Add' Button it will create a new PO
DoCmd.OpenForm "frmPO", , , stLinkCriteria, acFormAdd
In the New PO Form, If user decide to undo, user click the Undo button
me.undo
It seem like it cannot be undo, so I issue a delete and undo the current record , this time no complain from Ms Access,
DoCmd.DoMenuIte m acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuIte m acFormBar, acEditMenu, 6, , acMenuVer70
Me.Undo
DoCmd.Close
But when I return to the listbox, another new PO number was auto created.
What wrong with it ? Iwhich is the better or correct method.
Please Advise
DoCmd.OpenForm "frmPO", , , stLinkCriteria, acFormAdd
In the New PO Form, If user decide to undo, user click the Undo button
me.undo
It seem like it cannot be undo, so I issue a delete and undo the current record , this time no complain from Ms Access,
DoCmd.DoMenuIte m acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuIte m acFormBar, acEditMenu, 6, , acMenuVer70
Me.Undo
DoCmd.Close
But when I return to the listbox, another new PO number was auto created.
What wrong with it ? Iwhich is the better or correct method.
Please Advise
Comment