by Stefan » March 29th, 2005, 10:16 pm
I'm not entirely sure if I know what you mean but you can try this:
Create a file called "access.udl"
Edit that file (by double clicking on it)
- Select the Microsoft Jet 4.0 driver
- Go the next tabsheet and select the MDB file you wish to connect to
- Fill in the username "admin" and the password associated with that account
- Test the connection by clicking "Test Connection"
- Save the file
Back in your in Delphi project:
- Set the LoginPrompt property to false (assuming you are using a TAdoConnection).
- Set the ConnectionString property to "FILE NAME=Access.udl"
- Then try connecting by setting the Connected property to true.
Cheers,
Stefan