Eichenbaum
New member
- Local time
- Today, 09:01
- Joined
- Jul 22, 2011
- Messages
- 8
Dear all,
I'm trying to retrieve some information from an external database to setup a report. It works fine when the database does not have a password. Below you find an example:
When I execute the report Access returns me 'Invalid password'.
How can I inform the password?
I tried something like : "SELECT * FROM tblName IN 'M:\Internal\Database.accdb'[;PWD=xxxxxx]" without success.
Does somebody how is the correct syntax?
Many Thanks in advance.
I'm trying to retrieve some information from an external database to setup a report. It works fine when the database does not have a password. Below you find an example:
Code:
Private Sub Report_Open(Cancel As Integer)
Me.RecordSource = "SELECT * FROM tblName IN 'M:\Internal\Database.accdb'"
End Sub
How can I inform the password?
I tried something like : "SELECT * FROM tblName IN 'M:\Internal\Database.accdb'[;PWD=xxxxxx]" without success.
Does somebody how is the correct syntax?
Many Thanks in advance.