Archive

Posts Tagged ‘execute’

ADODB Command.Execute does not return error for RAISERROR

December 4th, 2008 No comments

Description:

I was executing a stored proc which would halt its execution using RAISERROR. When I tried to run the stored proc in Query Analyzer it worked fine and gave me error but in VBA it couldn’t halt the execution and continued to the next statement. Read more…

Categories: MS Access Tags: , , ,

Microsoft Access: why qdf.execute is not showing any warning?

May 31st, 2006 No comments

I had an application in which I had a code like

Dim qdf as QueryDef
qdf = new QueryDef("Query")qdf.execute

The query was not running because of error but the application was not breaking at the time of error generation. To force the application to break/throw exception write the statement like

qdf.execute dbfailOnError

and by this way we can catch all errors.