Problem in accessing the Access Database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jaz215
    New Member
    • Nov 2007
    • 55

    Problem in accessing the Access Database

    Hi can anyone show me how to connect to an access database and also give me samples on adding and updating..(what i usually do is just by setting the properties of the adodc)

    my problem is that i just have set a password in my access dbase so everytime i open my program (even though as set the password property of my adodc) it asks for the password of the dbase.. how do i overcome this?
  • jaz215
    New Member
    • Nov 2007
    • 55

    #2
    my problem is that i just have set a password in my access dbase so everytime i open my program (even though as set the password property of my adodc) it asks for the password of the dbase.. how do i overcome this? (sorry i was trying to delete this reply)

    Comment

    • QVeen72
      Recognized Expert Top Contributor
      • Oct 2006
      • 1445

      #3
      Hi,

      You have to give Password in the Connection string.
      Change the connection string of the ADODataControl :
      [code=vb]
      Provider=Micros oft.Jet.OLEDB.4 .0;Data Source=C:\mydb. mdb; Jet OLEDB:Database Password=MyPass word
      [/code]

      Regards
      Veena

      Comment

      • jaz215
        New Member
        • Nov 2007
        • 55

        #4
        Hi i just did what you send but i got error when opening it.. it says the workgroup file is missing or opened exclusively by another user.

        Comment

        • QVeen72
          Recognized Expert Top Contributor
          • Oct 2006
          • 1445

          #5
          Originally posted by jaz215
          Hi i just did what you send but i got error when opening it.. it says the workgroup file is missing or opened exclusively by another user.
          Did you change the Connection string..? Post your Connection string here..

          REgards
          Veena

          Comment

          • jaz215
            New Member
            • Nov 2007
            • 55

            #6
            Originally posted by QVeen72
            Did you change the Connection string..? Post your Connection string here..

            REgards
            Veena
            i've got it going now tnx! :)

            Comment

            Working...