Skip to content

Open MS Access file protected with password

Mohammed Gamal

Asked Mar 19, 2013, 2:45 AM EDT4 answers
Share
LinkedInX
Hi All
i need to open A MS Access File and this file protected with a password
My Data source was "Microsoft Access Database File (OLE DB)"
my main form is a login form and after i enter the user name and password
then the form need to connect to the access file .
i face a run time error "not valid password"

private void SignIn()
        {
            #region Users_Region
            Stock_3DataSetTableAdapters.UsersTableAdapter UsersTA = new Pricing.Stock_3DataSetTableAdapters.UsersTableAdapter();
            Stock_3DataSet.UsersDataTable UsersDT = UsersTA.GetData(); // stop here
            DataRow[] UsersDR = UsersDT.Select();
            #endregion

Many thanks

3 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    hi gamal

    actually i want to know if you know the access database passord?As u have mentioned-
    My Data source was "Microsoft Access Database File (OLE DB)"
    my main form is a login form and after i enter the user name and password
    then the form need to connect to the access file .
    0
  • 0
    Sure, 1st I created this password 2nd I make a test connection And it is success
    0
  • 0
    No 
    Only it is succeed when I make a test connection
    But when I run the application and enter the username and password it gives me error " not valid password" 
    0
  • 1 short reply
    • 0
      Is your problem solved?
      0