im currently working in a project and i already made a code for the login, the only thing is that i dont know how to update the records(Username/Password) in access using VB 2010. well i can update by manually changing the content of my table but i like to have it change using an interface in my vb named Manage account
My first project is a grading system for a certain school. In my login form, there's a Forgot Password button. In the Forgot Password form, the user is asked to answer a secret question that he filled up upon registration, and if the answer is correct it will lead him to a Change Password form. My problem is, I don't know how to get then delete and then replace the password of a certain user.
I thought i am doing fine with my project..The access level is fine.. when i login as "ADMIN". I can change the password.. But for other users, if i click save nothing happens but if i click it again it will save(In my savebutton event the txtbox is cleared if saved)
Here is the code for my login(this is the access level part)
If reader.Read Then Dim access As String = reader.Item("Position").ToString Select Case access Case "ADMINISTRATOR" Me.Hide()
[CODE]...
AND THIS THE change PASSWORD PART
Private Sub UserPasswordUpdate()
Try Using _connce = New SqlCeConnection("Data Source=" & _dbAlumniTracking) _connce.Open()
In my login form, there's a Forgot Password button. In the Forgot Password form, the user is asked to answer a secret question that he filled up upon registration, and if the answer is correct it will lead him to a Change Password form. My problem is, I don't know how to get then delete and then replace the password of a certain user. I attached some screen shots of my work.
I'm a newbie in vb. My first project is a grading system for a certain school. In my login form, there's a Forgot Password button. In the Forgot Password form, the user is asked to answer a secret question that he filled up upon registration, and if the answer is correct it will lead him to a Change Password form. My problem is, I don't know how to get then delete and then replace the password of a certain user
i used V S 2010, and Sql server 2005, now i want to know how i can set passord for access my database in sql server, and how can i make a connection of it.
I've password protected an mdb file but then I cannot access it on vb.net. I don't know the correct code for defining the password.this is my current code, I know its wrong, but I don't also know the correct code:
I'm trying to use two different methods of connecting to a database to edit data, the declaration below is working:
Dim rsConn As ADODB.Connection rsConn.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" _ & Application.StartupPath & "VFMS_DB.mdb;" _ & "Jet OLEDB:System Database=Security.mdw", "Ads", "1234")
but now I want to do the same thing with the declaration below but I keep getting the message "Not a valid account name or password.
Dim conn As OleDbConnection conn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" _ & Application.StartupPath & "VFMS_DB.mdb;" _ & "Jet OLEDB:System Database=Security.mdw;Database Account=Ads;Database Password=1234;")
I pretty sure it's because of this ;Database Account=Ads;Database Password=1234; not being correct. I tried ;User ID=Ads;Database Password=1234; and also to make it look like the first statement but neither worked.
My VB.NET program compacts and repairs my DB, but somewhere in the process unsets the database password. No problem, just reset it through VB, right? not sure how to go about that task.
So I either need to know how to compact it without losing the password, or how to reset the password after I lose it. Trying the best I can to make the code look decent in my post, let me know if there is a better way.
Dim strAccessDatabasePath As String = System.AppDomain.CurrentDomain.BaseDirectory & "App_DataSquirrel.accdb" Dim LockedDbFileInfo As New System.IO.FileInfo(strAccessDatabasePath.Replace(".accdb", ".laccdb")) Dim TempFolder As String = System.AppDomain.CurrentDomain.BaseDirectory & "App_Data emp" Dim TempDB As String = TempFolder & " emp.accdb"
First of all, no i am not trying to hack a database , i am trying to link to a database, created in MS Access, and have the user log into it, but i still get an error sayingQuotean unhandled expression of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll here is the code i'm using to input the password and username from a text box
How do I get it so my program reads the database when its password protected? This is the code I have at the moment?. Code: myConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=|DataDirectory|db1.mrk;"
Im making just a fun project using visual studio 2010. Its a simple password manager. The issue im having is trying to put the information from my Access database into a gridview. The issue im having is that it just doesnt do it, no error, just no results. I have done some looking, tried different examples but no luck on this.
Here is what i have for this part:
Dim mypath = Application.StartupPath & "\User Passwords.mdb" Dim password = "password" 'I do have an actual password, im just not going to put it out there
Dim connString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & mypath & ";Jet
I have an app with a password protected MS access database connected to it. lets say the password is "123". when I run my app i get an error saying that the password is incorrect even thought its not.i have been readig around but am strugling to find a solution.
Open a Access database (protected with a password) in my application in Visual Basic 2008. I use Oledb connection to link my Application to the database. When my Access database is not protected with password my connection goes well, but I don't know how to set my password of my database in my application. I have "googled", but I can't find something that works for me. [code]----
I have a piece of code that is suppose to update the password field when the user wants to change password but I get an error line: An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll error line: cmd.ExecuteNonQuery()
If BindingContext(ds, "login").Position < 0 Then MsgBox("Database Is Empty !", MsgBoxStyle.Information, "Records Management System") Exit Sub End If If ComboBox1.Text = "" Then [Code] .....
I'm using an MS Access database which has password (database password, not a workgroup or smth). I'm using 13 characters - with no special signs- only letters. When I try to open the DB from access it works fine, but when I try to run my Windows Form application from Visual Studio Connection String, I get a message that "Not a valid password".
How do I open my Crystal Report in VB code (RPT files) on password-protected Access 2007 database? Ever since I protected my database with password, my Crystal Report generates an error.
I'm trying to create a password change form for my company's vendors. There are a couple of scenarios I could encounter doing this:
1 - User enters invalid current password 2 - New passwords do not match 3 - User's account is locked 4 - User cannot authenticate because password is expired
It's case 4 that I'm struggling with, because their is no way for me to take the password the user entered and verify it against active directory without getting an error.
i am trying to connect to a password-protected MS Access 2007 database. I don't have any problems connecting to the database when the database is stored on the C drive, the following command works for me: