I'm running a database at work with only one user, and every time I run the below code when clicking an individual radio button it's giving me the message
The Data has been changed Another user has edited this record and saved the changes before you attempted to save your changes. Re-edit the record.
This message only comes up after click the button a second time; once clicking it a third time the value is changed.
Private Sub radioNECC10000_Click()
Dim SQL As String
DoCmd.SetWarnings False
If (IsNull(Me.VendorNum.Value)) Then
MsgBox ("Please select a vendor!")
Else
If (Me.radioNECC10000 = True) Then
SQL = "UPDATE tbleVendorRecord " & _
"SET NECC_10000 = 10000 " & _
"WHERE Vendor_ID = " & VendorNum & " "
DoCmd.RunSQL SQL
Else
SQL = "UPDATE tbleVendorRecord " & _
"SET NECC_10000 = 0 " & _
"WHERE Vendor_ID = " & VendorNum & " "
DoCmd.RunSQL SQL
End If
End If
End Sub