Results 1 to 5 of 5

Thread: URGENT:: password protecting

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    Lowestoft
    Posts
    91
    How please ppl do i password protect my database and still access it thru vb? i want to use a adodc control, and a login box, i cant establish a connection when i have a password set, and it says something about a workspace file or something.. i am totally stuck, this has to be done by the 19th July, HELP ME! thanks
    Mag-Net's Home
    Visual Studio 6-Enterprise - SP4
    ICQ: 35519773
    Have Fun

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    Code:
        
        'uses ADO 2.x
        Dim cn As Connection
        
        Set cn = New Connection
        
        cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Nwindnew.mdb;Jet OLEDB:Database Password=password;"
    Just change your connection string as I showed above

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    Lowestoft
    Posts
    91
    Hey man, there is one word for you: "genius", thank you so much, you saved my life... Do you know how to get rid of that of that multiple OLE DB Step error or something that i asked in that other thread?

    THANKS!
    Mag-Net's Home
    Visual Studio 6-Enterprise - SP4
    ICQ: 35519773
    Have Fun

  4. #4
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    Lets see your code that generates the error

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    Lowestoft
    Posts
    91
    I really am not sure why i was getting the error, i got fed up with 98 so i rebooted into NT and done a bit of fiddleing and fixed it all, I dont get the error now and everything is running smoothly, thanks guys!
    Mag-Net's Home
    Visual Studio 6-Enterprise - SP4
    ICQ: 35519773
    Have Fun

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