Hi all,
I have the following query/sql that unfortunately doesn't calculate the exact number of hours between "Date1 Hour1" and "Date2 Hour2". If the result is under 24 hours it works but if the time that pass is over 25 26 27 28 hours it says too long to be displayed. How can adjust thais? Unfortunately in my Access TIMEDIFF doesn't exist.
SELECT [2021].Date, [2021].ORARIO_PORTINERIA, [2021].ORARIO_FINE_SCARICO, [2021].DATA_SDOGANAMENTO, [2021].ORARIO_SDOGANAMENTO, DateDiff("n",CDate(Format([Date] & " " & [ORARIO_PORTINERIA],"dd/mm/yyyy hh:nn")),CDate(Format([DATA_SDOGANAMENTO] & " " & [ORARIO_SDOGANAMENTO],"dd/mm/yyyy hh:nn")))/60 AS CUSTOM_TIME, DateDiff("n",CDate(Format([Date] & " " & [ORARIO_PORTINERIA],"dd/mm/yyyy hh:nn")),CDate(Format([Date] & " " & [ORARIO_FINE_SCARICO],"dd/mm/yyyy hh:nn")))/60 AS TEMPO_SCARICO
FROM 2021
ORDER BY [2021].Date DESC;
Thanks in advance
Georg
I have the following query/sql that unfortunately doesn't calculate the exact number of hours between "Date1 Hour1" and "Date2 Hour2". If the result is under 24 hours it works but if the time that pass is over 25 26 27 28 hours it says too long to be displayed. How can adjust thais? Unfortunately in my Access TIMEDIFF doesn't exist.
SELECT [2021].Date, [2021].ORARIO_PORTINERIA, [2021].ORARIO_FINE_SCARICO, [2021].DATA_SDOGANAMENTO, [2021].ORARIO_SDOGANAMENTO, DateDiff("n",CDate(Format([Date] & " " & [ORARIO_PORTINERIA],"dd/mm/yyyy hh:nn")),CDate(Format([DATA_SDOGANAMENTO] & " " & [ORARIO_SDOGANAMENTO],"dd/mm/yyyy hh:nn")))/60 AS CUSTOM_TIME, DateDiff("n",CDate(Format([Date] & " " & [ORARIO_PORTINERIA],"dd/mm/yyyy hh:nn")),CDate(Format([Date] & " " & [ORARIO_FINE_SCARICO],"dd/mm/yyyy hh:nn")))/60 AS TEMPO_SCARICO
FROM 2021
ORDER BY [2021].Date DESC;
Thanks in advance
Georg