Cancel Butten

T

Tom

Hi all,
In my DB I have created a form which the user need to put info in. It`s open
in an add mode.
I put a cancel butten in case he opened it by mistake or any other reason
thatmight be.
I tried to put DoCmd. CancelEvent, but the data I put in the stays in the
table - so that didnt work.
I tried to put deleteRecord that work ok but 2 things:
1. A system massage "1 record delete"
2.when I dont put anything i get a massage "The command in not available"

I also tried "ClearAll" command and it did not work.

What should I do?

Thanks very much,
Tom
 
M

Michel Walsh

Hi,


If the record is not saved, yet, you can try a


Me.Undo


Hoping it may help,
Vanderghast, Access MVP
 

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

Top