I have a form that allows the users to Search to find Leter of Credit records already entered into the DB. From this from they have a button to delete these record too.
I want to add in an audit trail to the delete function so I the Admin knows what Letter of Credit records were delete but more importantly by which user.
Here is the Event code I have for the button to delete all references to the given record.
________________________________________________
Private Sub DeleteLC_Click()
DoCmd.OpenQuery "DeleteLCDocHist"
DoCmd.OpenQuery "ClearLCFromShipment"
DoCmd.OpenQuery "DeleteLC"
Me.Requery
End Sub
_________________________________________________
My thoughts were to add in an Update Query as the first query to save this record off to an audit file but I can't figure out how to get the UserID part of the audit file record in the Query.
I want to add in an audit trail to the delete function so I the Admin knows what Letter of Credit records were delete but more importantly by which user.
Here is the Event code I have for the button to delete all references to the given record.
________________________________________________
Private Sub DeleteLC_Click()
DoCmd.OpenQuery "DeleteLCDocHist"
DoCmd.OpenQuery "ClearLCFromShipment"
DoCmd.OpenQuery "DeleteLC"
Me.Requery
End Sub
_________________________________________________
My thoughts were to add in an Update Query as the first query to save this record off to an audit file but I can't figure out how to get the UserID part of the audit file record in the Query.