database - ODBC connection in VBA on a mac (excel 2011) to a postgresql db -


i have vba script in excel on windows box connects using ado postgresql db. have same on mac. reading posts on so, i've: - downloaded odbc driver (openlink) on mac - set dsn , connected db

now vba change. i've searched on so, postgresql.org site, openlinks , other places clear example, haven't found yet. here relevant vba code on windows:

dim cnn new adodb.connection dim rst new adodb.recordset dim strsomevalue string  cnn.open "driver={postgresql ansi};database=<db>;server=<target>;port=<port>;uid=<myusername>;pwd=<mypwd>" 


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -