I am trying to update a recordset with the following code but get the error: Operation is not supported for this type of object. This happens on the find first bit
Code:
Dim rs As DAO.Recordset
Dim db As DAO.Database
Set db = CurrentDb
Set rs = db.OpenRecordset("tblEngagements")
DoCmd.Save
With rs
.Edit
SrchCrit = CStr(Me!frmEngagementQuickAddSub!EngagementID)
rs.FindFirst "EngagementID = " & SrchCrit
rs!SchoolID = Me.SchoolID
rs!BookingYearID = Year(Date)
rs!EngagementNumber = "1"
rs!HowHeardID = Me.HowHeardID
.Update
End With
rs.Close
Set rs = Nothing
db.Close
Set db = Nothing