HI
I have the below in a load of code
When I run it, I get the error message RunTIme Error 3061. Too Few Parameters. Expected 1.
The FE is connected to a MySQL backend, if I run the above in a SqlYog it works fine and returns what it should, if I create a qry in Access and run it, it work fine and returns what it should, but when in the code it doesn't.
Any idea's?
I have the below in a load of code
Code:
Dim db as DAO.Database
Dim rsEmail as DAO.Recordset
set db= CurrentDB
Set rsEmail = db.OpenRecordset("SELECT tblfieldresource.fullname, tblfieldresource.email FROM tblfieldresource WHERE (((tblfieldresource.FieldResourceID) IN (SELECT tblfieldworks_attendedjobs.FieldResourceID FROM tblfieldworks_attendedjobs WHERE (((tblfieldworks_attendedjobs.FieldWorksID)=[TempVars]![tmpFieldWorksID])))))")
When I run it, I get the error message RunTIme Error 3061. Too Few Parameters. Expected 1.
The FE is connected to a MySQL backend, if I run the above in a SqlYog it works fine and returns what it should, if I create a qry in Access and run it, it work fine and returns what it should, but when in the code it doesn't.
Any idea's?