MS ACCESS error on 64bit application
Posted: Tue 15 May 2012 08:55
Hi to all.
I'm evaluating the UniDAC components suite on a Windows7 64Bits environment, with Delphi XE2 Update4 IDE.
I have to connect to MsAccess MDB database. I created a small test application with:
UniConnection, UniTable and Uniconnectiondialog dropped to form.
I set:
Conn.ProviderName := 'Access';
Conn.Username := '';
Conn.Password := ''; // no password
Conn.Server := '';
Conn.Database := 'myFolder\MyDatabase.MDB';
Tbl.TableName := 'TheTableName';
When I compile to a Win32 application all work fine.
When I compile to a Win64 application the following error is generated:
"[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified."
when I try to connect.
What's wrong?
I also tried the same with a MsSQL database and in this case all works fine (in Win64 too).
Only Access fails.
Thanks in advance.
Massimo Zanoletti
I'm evaluating the UniDAC components suite on a Windows7 64Bits environment, with Delphi XE2 Update4 IDE.
I have to connect to MsAccess MDB database. I created a small test application with:
UniConnection, UniTable and Uniconnectiondialog dropped to form.
I set:
Conn.ProviderName := 'Access';
Conn.Username := '';
Conn.Password := ''; // no password
Conn.Server := '';
Conn.Database := 'myFolder\MyDatabase.MDB';
Tbl.TableName := 'TheTableName';
When I compile to a Win32 application all work fine.
When I compile to a Win64 application the following error is generated:
"[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified."
when I try to connect.
What's wrong?
I also tried the same with a MsSQL database and in this case all works fine (in Win64 too).
Only Access fails.
Thanks in advance.
Massimo Zanoletti