I'm trying to work out a save routine that works however the user uses the form.
I started with a simple button (and some extra validation code) but thats no good if the user hits the exit button or the 'x'
So then I started using the form_beforeupdate event which was good because it seem to be called just before a save so I could do validation and allow undo.
But now the user still wants a Save button, and the usual docmd.domenu etc etc doesn't fire the before update event, manual calling the before update doesn't works unless they want to undo.
So what other options are there? Apart from duplicating the code in the button and the beforeupdate events.
I started with a simple button (and some extra validation code) but thats no good if the user hits the exit button or the 'x'
So then I started using the form_beforeupdate event which was good because it seem to be called just before a save so I could do validation and allow undo.
But now the user still wants a Save button, and the usual docmd.domenu etc etc doesn't fire the before update event, manual calling the before update doesn't works unless they want to undo.
So what other options are there? Apart from duplicating the code in the button and the beforeupdate events.