I am currently working on enhancing my database at work. I am trying to open up a recordset. The problem is that I get an error that says too few parameters expected. I am using a query as the recordset and it does return the one record that I want it to return. The recordset though doesn't seem to be able to see the record. If anyone can help it would be appreciated. The code up to the recordset is fine and works. The error occurs when I open up the recordset.
Code:
Dim db As DAO.Database
Dim rs As Recordset
Me.TestRequestCombo.SetFocus
If Me.TestRequestCombo.Text = "" Then
MsgBox "You have not made a valid selection. Please select a valid Test Request Number."
Exit Sub
Else
Set db = CurrentDb
Set rs = db.OpenRecordset("FullTestRequestRetrievalQuery")
rs.MoveFirst
some more code
rs.Close