I’ve been scouring for information on how to add and query data within Excel VBA from an ACCDB. I’ve come across many answers: OpenDatabase() from my coworker, database connections and using an Access.Application object. What I couldn’t figure out is, is there a benefit to using the Access object instead of creating a connection to a database with a string and such? I did read that using the Access Application object I didn’t need to have the Access engine on the computer running the VBA, and I opted to do this for that reason. Plus, it looked a lot simpler than using a connection string and going that route. I’ve implemented the Access Object and it worked like a charm. So my question is, what’s the benefit or disadvantage to doing the Access Object way vs. doing it another way? Thanks all!
Share
Is the 10k incremental addition to the DB or your CSV input is increasing by 10K?
If it’s the former then yes, storing it in a database is a good idea and I would use the DAO route. You notice that not many people are fans of firing up the Access application, mainly because you’re not really using Ms Access features (it’s more than a data store).
As an alternative, skip Excel and put your macro inside Access, since you have the app. There are a lot of goodies in Access that you can take advantage of.
However, if your CSV is always at full volume, you may just want to process the data yourself within Excel/VBA. I assume that the “other” table is a reference table.