Results 1 to 4 of 4

Thread: adox and mdb properties

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2001
    Posts
    205

    adox and mdb properties

    I am using adox to create a new mdb database. How do I add a password to open the mdb and make the file hidden?

    VB Code:
    1. Set cat = New ADOX.Catalog
    2.     cat.Create "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbpath & ";Jet OLEDB:Engine Type=" & DBVersion
    3.     Set cat = Nothing

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: adox and mdb properties

    To set a password just add...

    VB Code:
    1. Set cat = New ADOX.Catalog
    2.     cat.Create "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbpath & ";Jet OLEDB:Engine Type=" & DBVersion [B]& ";Jet OLEDB:Database Password=password[/B]
    3.     Set cat = Nothing

    To hide a file have a look at this...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2001
    Posts
    205

    Re: adox and mdb properties

    I get the following error when I added that password code:
    Could not find installable ISAM.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: adox and mdb properties

    Quote Originally Posted by conniek
    I get the following error when I added that password code:
    Could not find installable ISAM.
    Have a look at this.

    Or, try this.
    '

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width