Home > Tricks n Techniques > Microsoft Access: why qdf.execute is not showing any warning?

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

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.

  1. No comments yet.
  1. No trackbacks yet.