I think it must be reacting to the code I have which saves the current record when closing a particular form. The reason for the code is so that when I open the db it will go to the record that was active when I closed it. I get the error from Malwarebytes when I close the db. And when I just close the form that has the code, it closes Access as well as giving the exploit warning. I’ve attached the Malwarebytes log entry and here’s the code:
Code: Select all
Private Sub Form_Unload(Cancel As Integer)
On Error GoTo GetOut
If Not IsNull(Me.TitleID) Then
CurrentDb.Execute "UPDATE tblLastLookup SET LastLookup=" & _
Me.TitleID, dbFailOnError
End If
GetOut:
End Sub