Well, my syntax is probably wrong cause I'm doing this off the top of my
head, but I think you need to do something like this ...
Dim dbs As DAO.Database
Set dbs = CurrentDB()
dbs.Execute "qryAppendYourRecords", dbFailOnError
I think I've used this syntax to accomplish what you describe, but whatever
you do, the FailOnError flag needs to be set for it to pass the error to your
error handler. You may need to add a DoCmd.SetWarnings False to ignore
the query generated error.
--
Danny J. Lesandrini
dlesandrini@hotmail.com http://amazecreations.com/datafast/
"Rolan" <continue@safe-mail.net> wrote ...[color=blue]
> Sorry if I did not clarify the post, but this is not related to a
> user-defined error number. Error 10011 is a bonafide MS Access (97)
> Error number, and regardless of what error trap that has been
> constructed, so that a user-designed error message can be shown, the MS
> Access default error message is displayed instead (database was unable
> to append all the data to the table...) Is this an unknown bug or what?
> Below is a related post that I found in the archives that describes the
> same phenomenon; however, I have spent considerable time writing error
> trapping code, but with no success.
>
> Anyone's insight will be appreciated.
>[/color]