# Re: DAO 3.5 vs DAO 2.5

Posted by Koi on August 20, 1997 at 22:05:46:

In Reply to: Re: DAO 3.5 vs DAO 2.5 posted by 小吴 on August 20, 1997 at 18:22:46:

: RecordsAffected 属性只有在执行 QueryDef 中的 Query 才能使用。

但是 QueryDef 不认识 stored-procedure 的语法啊...

sql$ = "exec myproc 'aaa','bbb'"
set qd = db.CreateQueryDef ("", sql$)
qd.Execute dbSQLPassThrough

MsgBox "Total " & db.RecordsAffected & " records affected."

在 .CreateQueryDef 那行就错了.

Follow Ups: