My following code gives me error message:
"Too few parameters. Expected 1."
It appears to me to be from the last line of code but I don't understand it / can't resolve. Please help!
StrSQL = "SELECT Keywds,keyid,key FROM Keys WHERE Keyid = Forms!Info.Key"
Set qdf = dbs.CreateQueryDef("TempQuery", StrSQL)
Set rst = dbs.OpenRecordset("TempQuery"
My SQL statement result is:
SELECT keywds,keyid,key FROM Keys WHERE Keyid = Forms!Info.Key
and appears to be OK, i.e., my query is created OK.
Thanks,
Dummy99
"Too few parameters. Expected 1."
It appears to me to be from the last line of code but I don't understand it / can't resolve. Please help!
StrSQL = "SELECT Keywds,keyid,key FROM Keys WHERE Keyid = Forms!Info.Key"
Set qdf = dbs.CreateQueryDef("TempQuery", StrSQL)
Set rst = dbs.OpenRecordset("TempQuery"
My SQL statement result is:
SELECT keywds,keyid,key FROM Keys WHERE Keyid = Forms!Info.Key
and appears to be OK, i.e., my query is created OK.
Thanks,
Dummy99