D
Dan McClelland
SQL Server 2K back end, Access XP adp front end.
Desired effect: Bound form, user entering new record,
leaves a required field incomplete and clicks the
application close box. User is warned (USING MY CUSTOM
MESSAGE AND NOT THE GENERIC ACCESS MESSAGE) that a
required field is empty and given the opportunity to fill
it in before exiting the application.
Correct me if I'm wrong...the only way to suppress the
generic (and potentially confusing) Access message is to
use the form's OnError event and setting the intrinsic
constant Response to acDataErrContinue. But, by
definition, this setting will do TWO things: suppress the
Access message and ignore the error. Upon ignoring the
error, the partly-entered new record disappears and the
user is returned to a new blank record. (That's right, it
disappears. It is not saved in the table. It is NOWHERE.)
Let me be clear. If I don't use the form's OnError event,
I can find no way of avoiding Access' generic message. No
way. However, if I do use OnError, and set Response =
acDataErrContinue, the generic Access message is
supressed, but the error is ignored too. WHY, oh WHY
isn't there a way to suppress the message but NOT ignore
the error so I can handle it? There's no reason the
record should just vanish.
Desired effect: Bound form, user entering new record,
leaves a required field incomplete and clicks the
application close box. User is warned (USING MY CUSTOM
MESSAGE AND NOT THE GENERIC ACCESS MESSAGE) that a
required field is empty and given the opportunity to fill
it in before exiting the application.
Correct me if I'm wrong...the only way to suppress the
generic (and potentially confusing) Access message is to
use the form's OnError event and setting the intrinsic
constant Response to acDataErrContinue. But, by
definition, this setting will do TWO things: suppress the
Access message and ignore the error. Upon ignoring the
error, the partly-entered new record disappears and the
user is returned to a new blank record. (That's right, it
disappears. It is not saved in the table. It is NOWHERE.)
Let me be clear. If I don't use the form's OnError event,
I can find no way of avoiding Access' generic message. No
way. However, if I do use OnError, and set Response =
acDataErrContinue, the generic Access message is
supressed, but the error is ignored too. WHY, oh WHY
isn't there a way to suppress the message but NOT ignore
the error so I can handle it? There's no reason the
record should just vanish.