I think you'll need to provide some more information.
For one thought, I believe that Access VBA cannot capture error messages that are coming from SQL Server or other external sources. I believe the error handling has to be done at the external source.
--
"If to err is human, then I must be some kind of human!" -Me