From: Łukasz Jarych [mailto:jaryszek@gmail.com] Sent: Monday, June 04, 2018 12:30 AM To: Adrian Klaver <adrian.klaver@aklaver.com> Cc: pgsql-general@postgresql.org >> PG-General Mailing List <pgsql-general@postgresql.org> Subject: Re: VBA to connect to postgresql from MS Access
If you’re using a 32 bit version of MS Access, you need to use the 32 bit ODBC driver not the 64 bit driver. Try changing the connection string from sConnString = "DRIVER={PostgreSQL Unicode(x64)};DATABASE=AccessTest;SERVER=localhost;PORT=5432;UID=postgres;PWD=1234;" to sConnString = "DRIVER={PostgreSQL Unicode};SERVER=localhost;DATABASE=AccessTest;PORT=5432; UID=postgres;PWD=1234;"