ANyone know how I can check to see if a record is looked and if so, display the next free record in the query?
My code is:
My code is:
Code:
Dim db As Database
Dim rst As DAO.Recorset
Dim strCriteria As String
Set db = CurrentDb
Set rst = db.OpenRecordsest("NextTaskList")
strCriteria = "TempAdviserLock = 'Free'"
rst.FindFirst strCriteria
If rst.NoMatch Then
MsgBox "There are no matching records"
Else
MsgBox "Record found"
End If
rs
rst.Close