G
Guest
I am a bit befuddled by the use of the Before_Update event. Occasionally I
run into problems and I dont always know why. I eventually try multiple
things and find my way, but I am still not very clear on the donts.
Is it generally a bad idea to force the Before_Update event by a call to one
of the GoToRecord methods? Let say a form has custom navigation buttons and
AddNew button. On the click event of these buttons, is it better to do your
entries-validation and based on some return value, determine whether to call
the appropriate goto... method? Conversely, is it a bad idea to place your
validation codes in the B4_Update procedure? - in which case (at least in my
programming) whenever you navigate away from a Dirty record and validation
fails, you get that nasty Access error 'Cant save record ...'. Or, how about
using on error resume statements to turn that error off?
Please advise. I'm sure that is on the top 10 list of access frustrations.
run into problems and I dont always know why. I eventually try multiple
things and find my way, but I am still not very clear on the donts.
Is it generally a bad idea to force the Before_Update event by a call to one
of the GoToRecord methods? Let say a form has custom navigation buttons and
AddNew button. On the click event of these buttons, is it better to do your
entries-validation and based on some return value, determine whether to call
the appropriate goto... method? Conversely, is it a bad idea to place your
validation codes in the B4_Update procedure? - in which case (at least in my
programming) whenever you navigate away from a Dirty record and validation
fails, you get that nasty Access error 'Cant save record ...'. Or, how about
using on error resume statements to turn that error off?
Please advise. I'm sure that is on the top 10 list of access frustrations.