I have some code that performs a lookup on a particular field and then prompts me if I wish to edit its entire record. That's where I'm running into difficulty. I should only have one entry in my table after selecting ok to overwrite record but it keeps adding the record dupes.
Here's what I got so far:
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("companytable", dbOpenDynaset)
If rs.RecordCount <> 0 Then
With rs
.FindFirst "Ticker" = Me.txtTicker
If Not .NoMatch Then
.Edit
.Fields("Company") = Me.txtCompany
.Update
End If
End With
End If
End If
thanks in advance!