I have created a query using Microsoft access that will work out the difference between a time that i enter into the database (HH:MM:SS) and then to take away the current time.
I have this working inside the access database but i cannot take it from the database and display the result in my webpage.
The SQL query i get after creating my query in access is:
The error that i have previously had is FormatDateTime
Can anybody help?
Thanks in advance
Matthew
I have this working inside the access database but i cannot take it from the database and display the result in my webpage.
The SQL query i get after creating my query in access is:
Code:
SELECT Flights.Depart_Time, Time() AS [Current_Time], IIf([Depart_time]>Time(),"Will Depart In","Should Have Left") AS SStatus, FormatDateTime([Depart_time]-Time()) AS How_Long, Flights.Airline, Flights.Flight_Number, Flights.Status, Flights.Location FROM Flights ORDER BY Flights.Depart_Time;
Can anybody help?
Thanks in advance
Matthew
Comment