Set AllowAdditions back to False after NOT entering a new record - but on what event?
I have a continueous subform which has allowadditions set to False. Then I have an "add new record" which changes the allowadditions to True and sends user to the empty new record. Now, let's say the user decides to leave the proccess of entering the new record (before entering anything in any of the text boxes) and clicks somewhere outside the empty record section - how (on what event) can I reset the allowadditions to false at this moment and hide the new empty record section?
AfterInsert event won't do the job because the user did not enter anything. Is there OnLostFocus just for that empty record section? I know OnCurrent would work if the user clicked away onto another record but what if he just clicks somwhere outside the empty record without deselecting that empty record? Is there a way of "locking" the user to the proccess of being only in that empty new record untill let's say he clicks my Undo btn?? (Although I'm not sure if that's a good idea)
I basically want to disallow additions the minute the user decides that he doesn't want to enter a new record after all.
I have a continueous subform which has allowadditions set to False. Then I have an "add new record" which changes the allowadditions to True and sends user to the empty new record. Now, let's say the user decides to leave the proccess of entering the new record (before entering anything in any of the text boxes) and clicks somewhere outside the empty record section - how (on what event) can I reset the allowadditions to false at this moment and hide the new empty record section?
AfterInsert event won't do the job because the user did not enter anything. Is there OnLostFocus just for that empty record section? I know OnCurrent would work if the user clicked away onto another record but what if he just clicks somwhere outside the empty record without deselecting that empty record? Is there a way of "locking" the user to the proccess of being only in that empty new record untill let's say he clicks my Undo btn?? (Although I'm not sure if that's a good idea)
I basically want to disallow additions the minute the user decides that he doesn't want to enter a new record after all.
Last edited: