JaedenRuiner
Registered User.
- Local time
- Yesterday, 18:33
- Joined
- Jun 22, 2005
- Messages
- 154
Okay,
So, I tried listening to the advice about using DAO as opposed to sql and it just doesn't work.
I simply need to execute an UPDATE query statement on a table in my database. So, I Open the database into a Database object. I then format my SQL into a string, and then Create a QueryDef.
And the Darned Execute line comes back with:
What is that?!?!? There is only one parameter for the execute method on the querydef object. At least that's what the Intellisense and Help documentation say.
i'm following the example used with the northwinds database directly from the help, so why is it failing?
Thanks
Jaeden "Sifo Dyas" al'Raec Ruiner
So, I tried listening to the advice about using DAO as opposed to sql and it just doesn't work.
I simply need to execute an UPDATE query statement on a table in my database. So, I Open the database into a Database object. I then format my SQL into a string, and then Create a QueryDef.
Code:
set db = OpenDatabase(Mydbfilename)
set qdf = db.CreateQueryDef("", sqlString)
qdf.Execute
And the Darned Execute line comes back with:
Run-Time Error '3061':
Too few parameters. Expected 8.
What is that?!?!? There is only one parameter for the execute method on the querydef object. At least that's what the Intellisense and Help documentation say.
i'm following the example used with the northwinds database directly from the help, so why is it failing?
Thanks
Jaeden "Sifo Dyas" al'Raec Ruiner