Question : 'DoMenuItem action was canceled' for DELETE

Hi everyone,

I think this is an MS Access bug, or I really dunno.  This how it goes:
I have a form "EDIT_VALUES" with several recordsets.  Let's say:
ABC 44 44 2.50
DEF 43 23 2.50
SSS 44 42 2.50

are my recordsets.
Whenever i DELETE on the record "SSS 44 42 2.50", a message box appears:
"You are about to Delete 1 record..If you click Yes, you won't be able to UNDO... "

When i clicked NO, it is expected that SSS 44 42 2.50 should NOT be deleted, as well as the other records.  What happened is:  
ABC 44 44 2.50
DEF 43 23 2.50
are DELETED and SSS 444 42 2.50 is NOT DELETED.

However, when i close and reopen the form.  Nothing is Deleted.
Can anyone help me on this?

Thanks.

Answer : 'DoMenuItem action was canceled' for DELETE

gero,

nothing gets deleted, and no it's not a bug.

After you say no Access will return the focus to the record that is "not to be deleted".  Access can behave in an unexpected manner at this point and display only that record at the top of the window.  If you scroll up using the scroll bar on the offending window you should see the other records (or just press CTRL-HOME).  This behaviour is normally only seen when you delete the last record when in a datasheet or continuous forms view.





Random Solutions  
 
programming4us programming4us