Hello, I have a seemingly simple command set up but I can't get it to work. Here is the pertinent code:
Dim rs As ADODB.Recordset
Set rs = CurrentProject.Connection.Execute("SELECT qryTotal_Compliance_Data.* FROM qryTotal_Compliance_Data;")
I went ahead and copied the SQL right out of the Access SQL Design window. This query works fine form the Access UI, but when I try to access it this way, I get this Error:
Run-time error '-2147217904 (80040e10)':
No value given for one or more required parameters.
Any ideas what is going on?
Your help is much appreciated.
Dim rs As ADODB.Recordset
Set rs = CurrentProject.Connection.Execute("SELECT qryTotal_Compliance_Data.* FROM qryTotal_Compliance_Data;")
I went ahead and copied the SQL right out of the Access SQL Design window. This query works fine form the Access UI, but when I try to access it this way, I get this Error:
Run-time error '-2147217904 (80040e10)':
No value given for one or more required parameters.
Any ideas what is going on?
Your help is much appreciated.