G
Guest
Form A is bound to Table A
Form B is bound to Table B
I have a button on Form A whose Click event opens Form B and gives Form B
focus. Form B has a Cancel button that is supposed to prevent the new record
from being added to Table B. In the Cancel button's Click event, I am using
the code:
DoCmd.Close acForm, "Form B", acSaveNo
but the record gets saved to Table B anyway. What am I doing wrong?
Form B is bound to Table B
I have a button on Form A whose Click event opens Form B and gives Form B
focus. Form B has a Cancel button that is supposed to prevent the new record
from being added to Table B. In the Cancel button's Click event, I am using
the code:
DoCmd.Close acForm, "Form B", acSaveNo
but the record gets saved to Table B anyway. What am I doing wrong?