I've got two forms called cashtransactions and cashtrndetail.
I have created a code that when the cashtransactions form open, it fills in data and then it also creates an autonumber in the one field.
On the subform cashtrndetail I have command buttons. The one is a close button. I am trying to write a code that if data was entered in any of the field in the subfrom and when I click the close command button then a msgbox appears saying that the details will be discarded and am I sure I want to close the form.
When I say yes to discard the details I want to undo all the data on the parent form and the subform and then close the form.
Can anyone please help!!!
Thanks
Ryno