HELP!
Whenever I try to run the code below I keep getting Error 3061 - To Few Parameters when it gets to the set rst line.
I have checked the Access Help and it appears that it should work.
TIA
Whenever I try to run the code below I keep getting Error 3061 - To Few Parameters when it gets to the set rst line.
I have checked the Access Help and it appears that it should work.
Code:
Dim strSQL As String
Dim db As Database
Dim rst As Recordset
Set db = CurrentDb
strSQL = "SELECT SumProd FROM qsumCScrap WHERE ProdDept = 'S'"
Set rst = db.OpenRecordset(strSQL)
TIA