I've built a bit of VBA code to run an action query (append/delete/insert into/update) and to log its result, I will run this function from a MS Access macro. There are a bunch of action queries, so I want to make a general function that will log the results. RecordsAffected is one bit of that...