If it is an UPDATE query, then definitely use the ADO.Command / ADO.Parameter style query VBA code. I have a concise example of such - though specifically postured towards Access tables - in the links above.
To that, you would need to supplement with an appropriate ADO.Connection object able to...