Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

[MS ACCESS] Time Difference Query

k0piko

Novice
Advanced Member
Messages
27
Reaction score
0
Points
26
Hello,

meron po ako na may 3 fields
Code:
Start_Time - (DateTime) - default value nya po is =Now()
End_Time - (DateTime) - default value nya po is =Now()
Time_Lapse - (DateTime) - default value nya po is =Now()

Sa Button Start ko po,
Code:
"UPDATE tbl_Logged SET Start_Time =#" & Now() & "# WHERE Rep_ID = " & RepID &""

Sa button end ko po,
Code:
"UPDATE tbl_Logged SET Eend_Time =#" & Now() & "#,[B][COLOR="#B22222"]Time_Lapse= "GUSTO KO PO MAKUHA UNG TIME DIFFERENCE NUNG START TIME AT END TIME"[/COLOR][/B] WHERE Rep_ID = " & RepID &""

For example po ay ganito:
Code:
Start Time = 02/12/2015 10:30:00 PM
End Time = 02/13/2015 01:30:00 AM

Time Lapse = 03:00:00

Thanks in advance mga boss!
 
Last edited:
Hello,

meron po ako na may 3 fields
Code:
Start_Time - (DateTime) - default value nya po is =Now()
End_Time - (DateTime) - default value nya po is =Now()
Time_Lapse - (DateTime) - default value nya po is =Now()

Sa Button Start ko po,
Code:
"UPDATE tbl_Logged SET Start_Time =#" & Now() & "# WHERE Rep_ID = " & RepID &""

Sa button end ko po,
Code:
"UPDATE tbl_Logged SET Eend_Time =#" & Now() & "#,[B][COLOR="#B22222"]Time_Lapse= "GUSTO KO PO MAKUHA UNG TIME DIFFERENCE NUNG START TIME AT END TIME"[/COLOR][/B] WHERE Rep_ID = " & RepID &""

For example po ay ganito:
Code:
Start Time = 02/12/2015 10:30:00 PM
End Time = 02/13/2015 01:30:00 AM

Time Lapse = 03:00:00

Thanks in advance mga boss!

Search mo DATEDIFF
 
Search mo DATEDIFF



Code:
cmd.CommandText = "SELECT DATEDIFF(Minute,Date_Assign,Date_Completed) AS Time_Elapse FROM tbl_Grade WHERE G_ID = " + this.txt_G.text + "";

No value given for one or more required parameters sir.
 
Last edited:
Back
Top Bottom