I have a recordset created and held in a public variable while bouncing through some userforms.
One of the options I have is an uprevision of the data and I want to use recordset.find to prefill some of the fields in a userform for adding records.
The error I get is as described highlighting the ".find"
I am hoping this is just a syntax error because I do not want to have to loop through the recordset as an array.![]()
Public Function DBlatest(PartStr As String) As Variant objRecordset.MoveLast DBlatest = objRecordset.Find("PartNo = '" & PartStr & "'", , adSearchBackward, objRecordset.RecordCount) 'objRecordset.FindLast Stop End Function
Bookmarks