Hi all,
I have a database that records issues and incidents based on different priorities.
I am trying to write a query to show the time difference since the last incident depending on priority.
I.e. difference between End date/time and Now where priority = 1 and the same where the priority = 2.
What I have so far is:
Datediff: DateDiff("n",[date resolved],Date())
Timediff: DateDiff("n",[time resolved],now())
Total mins: ([timediff]+[datediff])
I am having difficulty in making this work by incorporating the priorites however.
Can this be done?
Thanks
Gareth
I have a database that records issues and incidents based on different priorities.
I am trying to write a query to show the time difference since the last incident depending on priority.
I.e. difference between End date/time and Now where priority = 1 and the same where the priority = 2.
What I have so far is:
Datediff: DateDiff("n",[date resolved],Date())
Timediff: DateDiff("n",[time resolved],now())
Total mins: ([timediff]+[datediff])
I am having difficulty in making this work by incorporating the priorites however.
Can this be done?
Thanks
Gareth
Comment