Luis Diaz
asked on
VBA: execute sql queries
Hello experts,
Please find bellow and attached a xlsm file that Use to update data in one of the database.
I was wondering if there is a way to create a Sub in VBA in which I define the user information (username, password) server and database and directly run the various queries defined in Column B and if possible display the sql logs in msgbox or in an external file.
Thank you again for your help.
Please find bellow and attached a xlsm file that Use to update data in one of the database.
I was wondering if there is a way to create a Sub in VBA in which I define the user information (username, password) server and database and directly run the various queries defined in Column B and if possible display the sql logs in msgbox or in an external file.
Thank you again for your help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What type of db?
ASKER
Sql server db
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect it works, I will retest for other queries tomorrow.
ASKER
Sorry for the delay. Tested and it works!
ASKER
Could you please let me know where should I report the server name and the database name?
Thank you again for your help.