Hi All,
I trying to get a sql query into a recordset but keep getting an error thrown back. The error is : Too few parameters. Expected 1.
Can anyone help with this?? Thanks.
I trying to get a sql query into a recordset but keep getting an error thrown back. The error is : Too few parameters. Expected 1.
Can anyone help with this?? Thanks.
Code:
sql = "SELECT * FROM Failures WHERE rs![user ID] = Failures.[Sales Contact]"
Debug.Print sql
[COLOR="red"]Set rs2 = CurrentDb.OpenRecordset(sql)[/COLOR]