Undo

G

greg

Can anyone help?

Given:

Parent form (PForm) with two subforms (sfrm1 and sfrm2).
An invoice record selected at cboInvNum on PForm. PForm
is read only; sfrm1 always has entries; sfrm2 most often
does.

A record is written in the AfterUpdate event of
cboInvNum, before any entry is made in sfrm1. (I need to
leave this as is.)

OnClose PForm I wish to test for incompletes in sfrm1 and
sfrm2 and allow user to abandon entry. In other forms I
have Me.Undo working fine, but I don't think the record
is written. I even tried pointing to sfrm1 with the undo.
Neither works.

I saw in a response the use of acUndo as part of a line
of code to effect the abandon. That didn't work for me --
error message was "undo not available".

How can I abandon (or delete safely)?

Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top