QUOTE(antukin_cs @ 26 Aug, 2008 - 08:37 PM)

no i dont want to display the time, i want to save the time into the database (MS Access) and retrieve it later...how can i do it?
QUOTE
You can add a field in the tblUser, name it as TimeLog and after that, try to update the record in the database.
CODE
Adodc1.RecordSource = "SELECT * FROM USERS WHERE USERNAME ='" + txtUserName.Text + "'"
Adodc1.Refresh
If (Adodc1.Recordset.EOF = False) Then
If (txtPassword.Text = Adodc1.Recordset.Fields("Password")) Then
Adodc1.Recordset.fields("TimeLog") = Format(Time, "HH:mm:ss am/pm")
Adodc1.Recordset.Update
MsgBox ("Login Successful")
Else
MsgBox ("Login Failure. Incorrect Password")
End If
Else
MsgBox ("Login Failure. Username does not exist.")
End If