I’m trying to clean up some stuff from a previous programmer. As part of a process, a macro is called. They had this interesting habit of, while doing several append and update queries within the macro, opening select queries that may or may not have to do with a subsequent append or update query. This just displays data to no one but the server. The other thing that’s done is that, at the end of the process, every single query that was used is closed. So for example(using my favorite Disney characters):
qappMickey – an append query is run against the tblMickey table
qselMickey – a select query is opened on the tblMickey table
qupdMinnie – an update, based on qselMickey is run against the tblMickey table
qselMinnie, a select query is opened, based on the tblMickey table
qappMinnie – an append query is run against the tblMinnie table from the tblMickey table
qupdPluto – an update query is run against the tblMinnie table
close qupdPluto
close qappMinnie
close qselMinnie
close qupdMinnie
close qselMickey
close qappMickey
quit
Now, is this just one person’s interpretation of how to release memory, or is there some legitimate reason for doing this? If I remove the select queries and close steps, it doesn’t seem to cause any harm. I just want to be able to defend my actions down the line.