B
Bryan
I am trying to make an Excel Workbook application that connects to a
PostgreSQL database on my computer. It is for a personal finance
application. I will be the only user and the database is simple so I *think*
I should be able to do this with VBA for Excel 2004. I just want to connect
to the database, run SQL queries and generate reports from those queries.
According to Mactopia, I know that first I need to purchase an ODBC driver
for Excel. I have downloaded a demo version just for testing. I want to
make sure I can really connect to a database with Excel 2004 before spending
the money on the ODBC driver.
So the problem -- I do not know what the VBA code would look like to make
the ODBC connection. I have searched quite a bit but find everything is
Windows-centric (ADO). And when I asked for help in an Excel webforum I just
get answers like "buy a Windows PC and just use ADO" or "ODBC is ancient, why
would you want to do that".
Sub ConnectToDatabase ()
' What goes in here?
End Sub
Any help would be greatly appreciated!
PostgreSQL database on my computer. It is for a personal finance
application. I will be the only user and the database is simple so I *think*
I should be able to do this with VBA for Excel 2004. I just want to connect
to the database, run SQL queries and generate reports from those queries.
According to Mactopia, I know that first I need to purchase an ODBC driver
for Excel. I have downloaded a demo version just for testing. I want to
make sure I can really connect to a database with Excel 2004 before spending
the money on the ODBC driver.
So the problem -- I do not know what the VBA code would look like to make
the ODBC connection. I have searched quite a bit but find everything is
Windows-centric (ADO). And when I asked for help in an Excel webforum I just
get answers like "buy a Windows PC and just use ADO" or "ODBC is ancient, why
would you want to do that".
Sub ConnectToDatabase ()
' What goes in here?
End Sub
Any help would be greatly appreciated!