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: Naveed_Cn is an unknown quantity at this point 
Solved Threads: 0
Naveed_Cn Naveed_Cn is offline Offline
Newbie Poster

Help ==> DataReprot + Password Protected Database (Urgent)

 
0
  #1
Jul 29th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: Help ==> DataReprot + Password Protected Database (Urgent)

 
0
  #2
Jul 30th, 2007
Hi,

open password protected database like this :

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. CN.ConnectionString = _
  2. "Provider=Microsoft.Jet.OLEDB.4.0;" & _
  3. "Data Source="& App.Path & _
  4. "\MyDataBase.mdb" & ";" & _
  5. "Jet OLEDB:Database Password=MyPWd"
  6.  
  7. CN.Open

Regards
Veena
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 71
Reputation: suneel kar is an unknown quantity at this point 
Solved Threads: 1
suneel kar suneel kar is offline Offline
Junior Poster in Training

Re: Help ==> DataReprot + Password Protected Database (Urgent)

 
0
  #3
Jul 30th, 2007
hi veena
our company has a passwor protected database.can we open tthat database.
regards
suneel



Originally Posted by QVeen72 View Post
Hi,

open password protected database like this :

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. CN.ConnectionString = _
  2. "Provider=Microsoft.Jet.OLEDB.4.0;" & _
  3. "Data Source="& App.Path & _
  4. "\MyDataBase.mdb" & ";" & _
  5. "Jet OLEDB:Database Password=MyPWd"
  6.  
  7. CN.Open

Regards
Veena
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: Help ==> DataReprot + Password Protected Database (Urgent)

 
0
  #4
Jul 30th, 2007
Hi,

If it is in Access, and if u know the Password then u can open it with the above code..

Regards
Veena
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 71
Reputation: suneel kar is an unknown quantity at this point 
Solved Threads: 1
suneel kar suneel kar is offline Offline
Junior Poster in Training

Re: Help ==> DataReprot + Password Protected Database (Urgent)

 
0
  #5
Jul 30th, 2007
hi veeeeeeee
if password is known anyone can access the databae. without password is it possible
regards
suneel



Originally Posted by QVeen72 View Post
Hi,

If it is in Access, and if u know the Password then u can open it with the above code..

Regards
Veena
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 71
Reputation: suneel kar is an unknown quantity at this point 
Solved Threads: 1
suneel kar suneel kar is offline Offline
Junior Poster in Training

Re: Help ==> DataReprot + Password Protected Database (Urgent)

 
0
  #6
Jul 30th, 2007
hi veena
and wt if i ddont know the passwod
regaards
suneel
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: Help ==> DataReprot + Password Protected Database (Urgent)

 
0
  #7
Jul 30th, 2007
Hi,

Try for some Password Breakers...

I gave the code In view of a "Developer"

Not As A "Hacker"..... --Vee
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC