Hi All,
As I am manipulating huge volumes of data using VBA and SQL, the Access database I’m using (the master database) becomes prone to exceeding it’s 2gb limit. In order to solve this problem, I am trying to do most of the manipulations/calculations in an external (secondary) database, and then periodically compact and repair this secondary database. Some of the manipulations I have to do involve using numerous make table SQL queries and multiplying/adding etc large matrices of data (e.g. multiplying a 1000x50 matrix by another 1000x50 matrix). Given the nature of my task, what would be the most efficient/quickest way to connect to the secondary database and run the SQL statements/queries?
Moreover, can anyone provide an example of the syntax I would have to use with each method (ADO or DAO).
Thanks for your help.
P.S. As far as I’m aware, using DAO, I would have to use something along the following lines.
As I am manipulating huge volumes of data using VBA and SQL, the Access database I’m using (the master database) becomes prone to exceeding it’s 2gb limit. In order to solve this problem, I am trying to do most of the manipulations/calculations in an external (secondary) database, and then periodically compact and repair this secondary database. Some of the manipulations I have to do involve using numerous make table SQL queries and multiplying/adding etc large matrices of data (e.g. multiplying a 1000x50 matrix by another 1000x50 matrix). Given the nature of my task, what would be the most efficient/quickest way to connect to the secondary database and run the SQL statements/queries?
Moreover, can anyone provide an example of the syntax I would have to use with each method (ADO or DAO).
Thanks for your help.
P.S. As far as I’m aware, using DAO, I would have to use something along the following lines.
Code:
Dim strSecondaryDB As String
Dim strMasterDB As String
Dim strSQL As String
Dim appAccess As Access.Application
Set appAccess = CreateObject("Access.Application")
strMasterDB = CurrentDb
strSecondaryDB = "full path to secondary db"
appAccess.OpenCurrentDatabase (strSecondaryDB)
strSQL = "a make table query etc"
appAccess.DoCmd.RunSQL strSQL