S
Stephan
Under certain conditions, the calling
code "DoCmd.RunCommand acCmdSaveRecord" is returned an
err 3021 (No current record) when it should be receiving
an err 2401 (The RunCommand action was canceled).
This occurs when the data entry form has been opened
on a new record from another form and a message box is
displayed in Form_BeforeUpdate explaining why cancel was
set to true. This is a common data validation technique
used in many of our programs; so I've already spent hours
trying to find some newsgroup discussion about it but
haven't found anything.
I am porting from Access 9 to 11 (on WinXP SP1, with
Jet SP8 applied) and am uncomfortable with having to trap
the 3021 in a place where it has no business appearing.
code "DoCmd.RunCommand acCmdSaveRecord" is returned an
err 3021 (No current record) when it should be receiving
an err 2401 (The RunCommand action was canceled).
This occurs when the data entry form has been opened
on a new record from another form and a message box is
displayed in Form_BeforeUpdate explaining why cancel was
set to true. This is a common data validation technique
used in many of our programs; so I've already spent hours
trying to find some newsgroup discussion about it but
haven't found anything.
I am porting from Access 9 to 11 (on WinXP SP1, with
Jet SP8 applied) and am uncomfortable with having to trap
the 3021 in a place where it has no business appearing.