N
Nuno
How can i open a Access Table that have a password?
Can somebody help me?
Thanks
Can somebody help me?
Thanks
-----Original Message-----
Are you saying you dont have the password, or you dont know how to pass it
in the connection string ?
Regards - OHM
.
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()
-----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
.