I believe the reason your code isn't working is becuase the recordset is not being Updated. The FindFirst method I outlined will be much quicker than looking at each record one at a time. Also, for your code to work correctly, there needs to be a Recordset.MoveNext command and it would be better executed as follows:

Do Until Recordset.EOF
With Recordset
.MoveFirst
If Recordset!RegNo = "ABC 333" Then
.Delete
.Update
End If
End With
Recordset.MoveNext
Loop

Featured Post

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps.
It is …

As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…