N
Nuno
How can i open a Access Table that have a password?
Can somebody help me?
Thanks
Can somebody help me?
Thanks
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
-----Original Message-----
Are you saying you dont have the password, or you dont know how to pass it
in the connection string ?
Regards - OHM
.
atabase Locking Mode=1;Jet OLEDB
atabase Password=;Data
on't Copy Locale on Compact=False;JetDim Conn As New OleDbConnection(strDSN)Function OpenTable() As DataSet
Dim strDSN As String
= "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\Conversao\Optiware98.MDB;pwd=et98jif%Znf[2)"
Dim strSQL As String = "SELECT * FROM Clientes"
Ds = New DataSet()
-----Original Message-----
Hi Nuno,
Can you try it with these changes, and if it does not work, cut that pwd
part again from it and try it again.
I hope this does work?
Cor
Dim Conn As New OleDbConnection(strDSN)Function OpenTable() As DataSet
Dim strDSN As String
= "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\Conversao\Optiware98.MDB;pwd=et98jif%Znf[2)"
Dim strSQL As String = "SELECT * FROM Clientes"
Ds = New DataSet()
Try
Dim cmd As New OleDbCommand(strSQL, Conn)
da = New OleDbDataAdapter(cmd)
da.Fill(ds, "Mensagens")
Return ds
Catch oledbExc As OleDbException
MessageBox.Show(oledbExc.ToString)
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
Conn.Close()
End Try
.
atabase Password=password"Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.