Results 1 to 40 of 63

Thread: ADO Beginners Tutorial

Hybrid View

  1. #1
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: ADO Beginners Tutorial

    The tutorial shows how to connect to an Access database, all you should need to change is the file name/location.

    If you need further help, see the Connection Strings link in my signature.

  2. #2
    Fanatic Member ididntdoit's Avatar
    Join Date
    Apr 2006
    Location
    :uoıʇɐɔoן
    Posts
    765

    Exclamation Re: ADO Beginners Tutorial

    I'm trying to open a database w/ a password, I can open it fine when there's no password, but what code do I use to add the password?

    this is the mods I made to the code so far, but is says that "Could not find installable ISAM"

    VB Code:
    1. Set cn = New ADODB.Connection 'we've declared it as a ADODB connection lets set it.
    2.     cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
    3.       "Data Source= c:\DB1.mdb;Jet OLEDB;Database Password=mypassword" 'this is the connection string explained in the notes section.
    4.     cn.Open

    Thanx

    p.s. code snippets help me, I'm a real noob, and a visual learner


    also, is there a way to change the password on the .mbd file inside the program? The problem I actually have is that the messaging program I'm making uses a text file to store lots of user settings, the problem is is that an idiot in my class tries to screw it up constantly, so when I boot him off of it, he has already made a copy of the program storring the info, so he just replaces it back, and he's back on. I want a way to change the password without having to re-compile the program to change the password, to render his old copy uselesss
    Last edited by ididntdoit; Apr 28th, 2006 at 05:55 PM.

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