B
benedict.cardoza
Hi,
I am into a grave problem which might be simple, But i cant do it
So, pleaze can any one help me,
Wud b Greatful...
Here goes the Problem........
I have a table with three fileds username, timein, timeout
Now what i have to do is, I have created a VB(its VB6 not VB.NEt) form
where in i am taking in Username from the user and inserting th
current time for that very moment.
Now as soon as user log's out i want to update his Timeout filed wit
the current time.
I am doin the following ...
Private Sub Form_Load()
EnableCloseButton Me.hWnd, False
Dim con As New ADODB.Connection
con.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DAT
SOURCE=D:\Bonny\db1.mdb"
con.Open
mysql = "Update tabUser set timeout='TimeValue(now())' wher
username='usernamepass'"
con.Execute(mysql)
con.Close
End Sub
(Where Usernamepass is the username i am taking on my first form o
login, and passing it to this form)
Regards..
Bonn
I am into a grave problem which might be simple, But i cant do it
So, pleaze can any one help me,
Wud b Greatful...
Here goes the Problem........
I have a table with three fileds username, timein, timeout
Now what i have to do is, I have created a VB(its VB6 not VB.NEt) form
where in i am taking in Username from the user and inserting th
current time for that very moment.
Now as soon as user log's out i want to update his Timeout filed wit
the current time.
I am doin the following ...
Private Sub Form_Load()
EnableCloseButton Me.hWnd, False
Dim con As New ADODB.Connection
con.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DAT
SOURCE=D:\Bonny\db1.mdb"
con.Open
mysql = "Update tabUser set timeout='TimeValue(now())' wher
username='usernamepass'"
con.Execute(mysql)
con.Close
End Sub
(Where Usernamepass is the username i am taking on my first form o
login, and passing it to this form)
Regards..
Bonn