G
Guest
Hey,
Someone on some post somewhere told me once to use db.Execute instead of
DoCmd.RunSQL because it would avoid those pop-ups that ask "are you sure?".
So I switched everything to db.Execute.
Now, with a few of the SQLs, I'll get an error message (when before, with
DoCmd instead of Execute, It worked fine).
One Example was this Query:
strSQL = "UPDATE [GPA Report Table] SET [GPA Report Table].Discount =
Forms!Pricing!bstxt WHERE ((([GPA Report Table].Carrier)='BELL SOUTH'));"
DoCmd.RunSQL strSQL works fine (other than the pop-up)
db.Execute strSQL returns:
Error #3061: Too few Parameters. Expected 1.
I was wondering if someone knew how to approach this.
For instance getting db.Execute to work for this SQL.
Also, I'm nervous that, under certain conditions this error might come back
on other queries when this program goes into circulation.
But... I don't want to turn off the warnings in order to use DoCmd.RunSQL
Any Advice would be Really appreciated.
Thanks
Someone on some post somewhere told me once to use db.Execute instead of
DoCmd.RunSQL because it would avoid those pop-ups that ask "are you sure?".
So I switched everything to db.Execute.
Now, with a few of the SQLs, I'll get an error message (when before, with
DoCmd instead of Execute, It worked fine).
One Example was this Query:
strSQL = "UPDATE [GPA Report Table] SET [GPA Report Table].Discount =
Forms!Pricing!bstxt WHERE ((([GPA Report Table].Carrier)='BELL SOUTH'));"
DoCmd.RunSQL strSQL works fine (other than the pop-up)
db.Execute strSQL returns:
Error #3061: Too few Parameters. Expected 1.
I was wondering if someone knew how to approach this.
For instance getting db.Execute to work for this SQL.
Also, I'm nervous that, under certain conditions this error might come back
on other queries when this program goes into circulation.
But... I don't want to turn off the warnings in order to use DoCmd.RunSQL
Any Advice would be Really appreciated.
Thanks