| | |
Help ==> DataReprot + Password Protected Database (Urgent)
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Jun 2007
Posts: 10
Reputation:
Solved Threads: 0
Hi Everyone
I m trying to open password protected Database for Data Report applying the following Code in Command Button1.
Dim CN As ADODB.Connection
Dim RS As ADODB.Recordset
Set CN = New ADODB.Connection
Set RS = New ADODB.Recordset
CN.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0" & _
";Data Source =" & App.Path & ".\MyDataBase.mdb"
CN.Open
Set RS = CN.Execute("Select * From Tabel1 Where Name ='" & txtName.Text & "'")
Set DataReprot1.DataSource = RS
DataReprot1.Show
But its showing error please, anyone tell me how can I set the connection for password protected Database.
I m trying to open password protected Database for Data Report applying the following Code in Command Button1.
Dim CN As ADODB.Connection
Dim RS As ADODB.Recordset
Set CN = New ADODB.Connection
Set RS = New ADODB.Recordset
CN.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0" & _
";Data Source =" & App.Path & ".\MyDataBase.mdb"
CN.Open
Set RS = CN.Execute("Select * From Tabel1 Where Name ='" & txtName.Text & "'")
Set DataReprot1.DataSource = RS
DataReprot1.Show
But its showing error please, anyone tell me how can I set the connection for password protected Database.
Hi,
open password protected database like this :
Regards
Veena
open password protected database like this :
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
CN.ConnectionString = _ "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source="& App.Path & _ "\MyDataBase.mdb" & ";" & _ "Jet OLEDB:Database Password=MyPWd" CN.Open
Regards
Veena
•
•
Join Date: Jul 2007
Posts: 71
Reputation:
Solved Threads: 1
hi veena
our company has a passwor protected database.can we open tthat database.
regards
suneel
our company has a passwor protected database.can we open tthat database.
regards
suneel
•
•
•
•
Hi,
open password protected database like this :
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
CN.ConnectionString = _ "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source="& App.Path & _ "\MyDataBase.mdb" & ";" & _ "Jet OLEDB:Database Password=MyPWd" CN.Open
Regards
Veena
![]() |
Similar Threads
- Connecting password protected MS Access database from C# (C#)
- password protected database (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Video Capture In Visual Basic
- Next Thread: please help me....urgent
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





--Vee