Attempting to run a script in VBA that will pull data from an access database using SQL and put it into an excel spreadsheet. Code is similar to below. ... Execute SQL Query with VBA and fill sheet with data. Ask Question Asked 4 years, 11 months ago. ... Not Inserting new records instead it updates the last record in Ms access vba. 2.