Sub LockProgram()
'this updates the program to be locked, to prevent peoples trying to force their way in.
'it is simply some basic validation and an update statement on the database
If loginAttemptsToday >= 5 Then
dataSet.Clear()
locked = True
loginAttemptsToday = 0
SQL = "SELECT * FROM Admin"
DataAdapter = New OleDb.OleDbDataAdapter(SQL, con)
commandBuilder = New OleDb.OleDbCommandBuilder(DataAdapter)
con.Open()
DataAdapter.Fill(dataSet, "Admin")
dataSet.Tables("Admin").Rows(0).Item("Locked") = 0
DataAdapter.Update(dataSet, "Admin")
con.Close()
determineLocked()
End If
End Sub
My program will read from a database perfectly, it will delete and add rows, but it simply will not update
thanks for any replies

New Topic/Question
Reply




MultiQuote








|