Hi Minty, sorry about that. So I uncommented the debug.print and also did the ctrl + G to see the Immediate window at the bottom of VBA however nothing shows in there. I have set the After Update event in the form with the following code UpdateLDEAllocatingLog Me.SAP
When i try to update the record on the form i get the following error "Compile error: Argument not optional"
The code in my module is as follows...
Public Sub UpdateLDEAllocatingLog(strSAP As String, strNewValue As String)
strSQL = "INSERT INTO LDEAllocatingLog (SAP , NewValue , ChangeDate , User) VALUES ('" & strSAP & "' , '" & strNewValue & "', NOW() , fOSUsername() )"
Debug.Print strSQL
CurrentDb.Execute strSQL, dbFailOnError + dbSeeChanges
End Sub