Anyone know why I am getting too few parameters error on the following code. I am trying to find the first record (in a query) where a field = 'free' and display it.
Code:
Dim db As Database
Dim rst As DAO.Recordset
Dim strFound As String, strCriteria As String
Set db = CurrentDb
Set rst = db.OpenRecordset("NextTaskList")
strCriteria = "TempAdviserLock = 'Free'"
rst.FindFirst strCriteria
strFound = rst.Bookmark
rst.Close
[code]