I have a form with an unbound text box and a cmd button. I want the user to be able to type in data where it matches the data in the txt box to a record in a table and update some fields tied to the record it matches to - but what I have written do not seem to find a match.
Stepping through, I see it just goes straight to the "End If" from the "If Not rcd1.NoMatch Then"
Stepping through, I see it just goes straight to the "End If" from the "If Not rcd1.NoMatch Then"
Code:
Set db1 = CurrentDb()
Set rcd1 = db1.OpenRecordset("tblMainTable", dbOpenDynaset, dbAppendOnly)
rcd1.FindFirst "[CHECK_NUMBER] = Me.txtChkNum"
If Not rcd1.NoMatch Then
rcd1.Edit
rcd1![SENT] = -1
rcd1![SENT_TO_DATE] = Date + Time()
rcd1.Update
End If