Something I usually do when finding suitable code is copy the weblink and the date I put into my database.  That way even if the code itself didn't contain the notice (which I keep as well if it is included in the code), there is still a reference from where it came from (of course that does not rule out that the original source of the code was from somewhere else).
	
	
	
		
 
		Code:
	
	
	'https://www.access-programmers.co.uk/forums/threads/audit-trail.324261/#post-1838647
'20220804 
	 
 
		 
 
		 
 
		 
 
		 
 
		