Connection failed with Access
Posted: Wed 26 Jan 2011 13:13
Hi,
I am using the UniDAC with MSSQL and with MSAccess Provider. I have problems with MSAccess. I programmed 2 applications which are using the same unit. The first one is a service for windows and the second is a test application for the service. It only starts a function of the unit both are using.
While starting the test application everything is fine and all connections are right. If I start the service, I get an exception from my UniConnection while executing the open command with the following message:
[Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a correct path....
My settings for the UniConnection are as follows:
myDB.Username := 'Admin';
myDB.Password := '';
myDB.Database := 'y:\mydb.mdb';
myDB.Server := '';
myDB.ProviderName := 'Access';
myDB.LoginPrompt := false;
Thanks in advance. Moony
I am using the UniDAC with MSSQL and with MSAccess Provider. I have problems with MSAccess. I programmed 2 applications which are using the same unit. The first one is a service for windows and the second is a test application for the service. It only starts a function of the unit both are using.
While starting the test application everything is fine and all connections are right. If I start the service, I get an exception from my UniConnection while executing the open command with the following message:
[Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a correct path....
My settings for the UniConnection are as follows:
myDB.Username := 'Admin';
myDB.Password := '';
myDB.Database := 'y:\mydb.mdb';
myDB.Server := '';
myDB.ProviderName := 'Access';
myDB.LoginPrompt := false;
Thanks in advance. Moony