G
Guest
I have an OnClick event that does:
DoCmd.GoToRecord , , acNewRec
My problem is that this fires the BeforeUpdate event which does some
validations and can issue 'Cancel = True'
Then my OnClick event fails with "Can't go to specified record"
The only thing I can think of is to do all the validations before I do the
'Docmd.GoToRecord' but then they will be done twice.
Am I doing this completely wrong? I did not write this code but I'd like it
to work properly.
DoCmd.GoToRecord , , acNewRec
My problem is that this fires the BeforeUpdate event which does some
validations and can issue 'Cancel = True'
Then my OnClick event fails with "Can't go to specified record"
The only thing I can think of is to do all the validations before I do the
'Docmd.GoToRecord' but then they will be done twice.
Am I doing this completely wrong? I did not write this code but I'd like it
to work properly.