compact password protected database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abrar1
    New Member
    • Apr 2007
    • 2

    compact password protected database

    i am using Access 2003 with vb6 my database is password protected and i want it to protect i have used ur following code but it generate error
    "Could not find installable ISAM."

    Code:
    JRO.CompactDatabase "Provider=Microsoft.Jet.OLEDB.4.0;" & _
                       "Data Source=" & strWorkDB & ";Jet OLEDBDatabase Password=donttryit", _
                          "Provider=Microsoft.Jet.OLEDB.4.0;" & _
                          "Data Source=" & mstrBakDB & ";Jet OLEDB:Engine Type=5;Jet OLEDBatabase Password=donttryit"
    waitting for your response

    abrar
    email address: Removed by Moderator
    Last edited by Killer42; Apr 5 '07, 03:43 AM. Reason: Please use [CODE]...[/CODE] tags around your code.
  • vijaydiwakar
    Contributor
    • Feb 2007
    • 579

    #2
    have u installed msaccess and ur front end?

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      I believe this is a general database connectivity issue, and not related to either the password-protection or specifically to the compact action. Can you perform other actions on the database at this point?

      I'm not that strong on database connections, but it looks a little odd to me that the source and destination have different type information. That is...

      Source: Provider=Micros oft.Jet.OLEDB.4 .0;Data Source=name;Jet OLEDBDatabase Password=donttr yit"

      Dest: Provider=Micros oft.Jet.OLEDB.4 .0;Data Source=name;Jet OLEDB:Engine Type=5;Jet OLEDBatabase Password=donttr yit"

      Hm... In fact, now that I look at it in detail, I doubt that OLEDBatabase is correct, anyway.

      Comment

      • abrar1
        New Member
        • Apr 2007
        • 2

        #4
        Originally posted by vijaydiwakar
        have u installed msaccess and ur front end?
        yes i am installed msaccess other module of application working fine except database compression

        Comment

        • Killer42
          Recognized Expert Expert
          • Oct 2006
          • 8429

          #5
          Originally posted by abrar1
          yes i am installed msaccess other module of application working fine except database compression
          Did you note, and carefully read, my mention of "OLEDBatabase"?

          Comment

          Working...