AM doing a query against database, but its not working
sSQL = "SELECT * FROM tasks WHERE due_date = " & MakeUSDate(Now) & _ " AND due_time < " & MakeUSTime(Time)
The date and time function
' Make US date and time Function MakeUSDate(X As Variant) As String If Not IsDate(X) Then Exit Function MakeUSDate = "#" & Month(X) & "/" & Day(X) & "/" & Year(X) & "#" End Function Function MakeUSTime(X As Variant) As String If Not IsDate(X) Then Exit Function MakeUSTime = "#" & Hour(X) & ":" & Minute(X) & ":" & Second(X) & "#" End Function
any help here!:)


Sign In
Create Account


Back to top









