Skip to content

Tag: vba

Access VBA Find Records using Search Critera in Recordset

I have an Access database connected to excel. I need to find records using Search criteria in recordset from Excel Table name in MS Access is MyTable with more than 10 columns with data User enters string data in Excel cell, let us assume Worksheets(“Sheet1”).Cells(1, 1) My need is, macro has to l…

Copy DAO recordset from Excel into Access table

I have searched endlessly for a solution to this but can’t figure it out at all. Any help would be massively appreciated. I currently have some Access VBA code which sets up a DAO recordset connection with a range in an excel worksheet. (I have avoided linking the spreadsheet as a linked table as I am u…

ADODB Connection to two access database

Due to ms access 2GB limitations on space; i am considering splitting a database into two. However I regularly rely on SQL statements such as the following: Is there a way in ADODB to perform the above, ie INSERT INTO table in file 1, the SELECT data from a table in file 2 ? Answer Here’s an example of …