I am running code:
__________________________________
strSQL1 = "SELECT DISTINCT ID FROM Scales"
Set rst1 = dbs.OpenRecordset(strSQL1, dbOpenForwardOnly)
Do While Not rst1.EOF
' Open records for this ID, sorted by Date.
strSQL2 = "SELECT * FROM Scales WHERE ID=" & rst1!ID & " ORDER BY Date"
Set rst2 = dbs.OpenRecordset(strSQL2, dbOpenDynaset)
__________________________________
and getting "Too few parameters. Expected 1" error.
My data example is:
ID_______Date______Action_____Scale
1_______1/1/2000___PRO_________111
1_______1/1/2001___PRO_________111
1_______1/1/2002___PRO_________111
1_______1/1/2003___PRO_________111
__________________________________
strSQL1 = "SELECT DISTINCT ID FROM Scales"
Set rst1 = dbs.OpenRecordset(strSQL1, dbOpenForwardOnly)
Do While Not rst1.EOF
' Open records for this ID, sorted by Date.
strSQL2 = "SELECT * FROM Scales WHERE ID=" & rst1!ID & " ORDER BY Date"
Set rst2 = dbs.OpenRecordset(strSQL2, dbOpenDynaset)
__________________________________
and getting "Too few parameters. Expected 1" error.
My data example is:
ID_______Date______Action_____Scale
1_______1/1/2000___PRO_________111
1_______1/1/2001___PRO_________111
1_______1/1/2002___PRO_________111
1_______1/1/2003___PRO_________111