curiouswebster
asked on
Executing a simply query against an Oracle database, using VBA
I need to use VBA to populate a Worksheet with the results of a simply query against a table.
Do I need a stored procedure to return the values?
Besides a connection string to access the Oracle Database, what else do I need?
I have the SQL tested in SQL Tools.
Please let me know.
Thanks.
Do I need a stored procedure to return the values?
Besides a connection string to access the Oracle Database, what else do I need?
I have the SQL tested in SQL Tools.
Please let me know.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have a simple Select, so SQL dialect is not an issue.
SELECT *
FROM tableName
WHERE YesNoValue='Y'
ORDER BY DESCRIPTION DESC
Yes, I now use breakpoints in my code, thanks.
I have an ODBC connection to the database, and the test succeeds.
I have SQL Tools successfully executing a query and getting back real data, so the firewall will not be an issue.
I need to know where to put the code, but I guess I can stick it anywhere for test purposes.
Thanks!