Excel VBA Introduction Part 56.4 - Return Multiple Result Sets from SQL Queries

preview_player
Показать описание

By Andrew Gould

Рекомендации по теме
Комментарии
Автор

This is great. I had done it by creating different modules with each query in it, it still worked but this way is a lot cleaner and simpler. Thanks so much!

FastingDude
Автор

Thank you Andrew Sir, I really love your videos and enjoy as well and I always learn new from your videos
Thank you so much, sir
You're awesome sir

pradeeprawatvlogs
Автор

Awesome code! Thank you so much for the great and useful tutorial. I have been looking for this code.

lightning
Автор

Congratulations for your tutorials these are really helpful...i m wondering if is posible to save the resultsets in a new workbook insteaf of the same!!!!

basilisxytas
Автор

Hi Andrew, I attempted using the method you taught in this tutorial to connect to SQLite with multiple queries at once, and sadly it didn't work. I have done a bit research and it seems due to the limitation of SQLite itself. I guess I will have to use command instead. Thanks!

lastdance
Автор

Do that work on access? I'm trying without success. Thx for the vid

Edit: on stack overflow, it seems that this operation is not possible for access database :(

johanbaltazar
Автор

Thank you very much for great and incredible efforts.
As for results from "Director" table there are some fields that shows errors "Dates and times that are negative or too large show as . How can I adjust that in the results in the worksheet?

KhalilYasser
Автор

Thank you very much.
Could you explain to me please why I get an error when I do the loop with several requests.
All the sheets are created, but with this message (sorry in French) : "Erreur d'exécution '91': Variable objet ou variable de bloc With non définie".

frankmanas
Автор

Thank you for this beautiful comprehensive video. I was able to connect the database using the excel vba. In addition i was able to create query using WHERE statement also but if I try to pass WHERE statement with variable, it shows error (No value given for one or more required parameters).
"SELECT * FROM Movies WHERE Actor = 'Tome Cruise'" works
but
Dim Actor As Variant;
ActorName = 'Tom Cruise';
"SELECT * FROM Movies WHERE Actor = ActorName'" doesn't.

Kindly help.

bioactiveSaha