docmd.runSQL Vs DB.execute

J

Jose Perdigao

What is it faster to run a SQL querie, running docmd.runSQl or execute DAO
method?
Thanks
 
L

Larry

Generally, DAO executes faster than just about anything else. Of course,
depending on what's being returned from your code, you might not notice a big
difference.

Larry Kraus MCP
 
V

Van T. Dinh

db.Execute may be marginally faster but I doubt it is an observable
difference.

The *major* difference is that Execute returns trappable JET error if you
want to use error-trapping.
 
Top