Connect from Excel using VBA macro to Access database and loop through all tables

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP

Connect from Excel using VBA macro to Access database and loop through all tables



I am trying to connect using an Excel macro to an Access database and get data from it. In order to do this I need to loop through all its tables and records.



Could anyone give me a sample code of how to do this? I am new to this kind of connections between Excel and Access. The only examples I managed to find so far were with extracting data from a table name already known.
In my situation, let's assume that I don't know in advance the table names of the Access database I am connecting to, so first I want to loop all table names and then import data based on some conditions.



I can offer more clarifications if needed. Thank you in advance for your help!





support.microsoft.com/en-us/help/186246/…
– Tim Williams
Jul 27 at 18:07





docs.microsoft.com/en-us/sql/ado/reference/adox-api/…
– Tim Williams
Jul 27 at 18:09









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

Executable numpy error

Trying to Print Gridster Items to PDF without overlapping contents

Mass disable jenkins jobs