I have a table with fields ShowDate & EditDate.
Here's a selection of records:
As you can see, you can have one record's EditDateTime being after another record's ShowDateTime. But then you can have another record that hasn't been edited, but the ShowDateTime is after another record's EditDateTime.
What I want to do is order them so that the record with the latest EditDateTime or ShowDateTime comes at the top, like this:
I can't think around this any more, can anyone point me in the right direction?
Thanks,
Stewart
Here's a selection of records:
Code:
ShowDateTime EditDateTime
a 06/03/2008 00:00:00,/ / : :
b 03/03/2008 00:00:00,/ / : :
c 06/03/2008 00:00:00,06/03/2008 15:30:55
d 03/03/2008 00:00:00,06/03/2008 11:20:22
e 03/03/2008 00:00:00,03/03/2008 11:18:54
f 03/03/2008 00:00:00,03/03/2008 11:17:39
g 03/03/2008 00:00:00,03/03/2008 11:16:24
h 03/03/2008 00:00:00,03/03/2008 11:18:24
i 03/03/2008 00:00:00,03/03/2008 11:17:54
j 03/03/2008 00:00:00,03/03/2008 11:17:20
k 03/03/2008 00:00:00,03/03/2008 11:16:31
l 03/03/2008 00:00:00,03/03/2008 11:16:03
m 06/03/2008 00:00:00,/ / : :
n 03/03/2008 00:00:00,04/03/2008 09:06:11
o 03/03/2008 00:00:00,03/03/2008 11:16:49
p 03/03/2008 00:00:00,03/03/2008 11:16:11
As you can see, you can have one record's EditDateTime being after another record's ShowDateTime. But then you can have another record that hasn't been edited, but the ShowDateTime is after another record's EditDateTime.
What I want to do is order them so that the record with the latest EditDateTime or ShowDateTime comes at the top, like this:
Code:
ShowDateTime EditDateTime
c 06/03/2008 00:00:00,06/03/2008 15:30:55
d 03/03/2008 00:00:00,06/03/2008 11:20:22
a 06/03/2008 00:00:00,/ / : :
m 06/03/2008 00:00:00,/ / : :
n 03/03/2008 00:00:00,04/03/2008 09:06:11
e 03/03/2008 00:00:00,03/03/2008 11:18:54
h 03/03/2008 00:00:00,03/03/2008 11:18:24
i 03/03/2008 00:00:00,03/03/2008 11:17:54
f 03/03/2008 00:00:00,03/03/2008 11:17:39
j 03/03/2008 00:00:00,03/03/2008 11:17:20
o 03/03/2008 00:00:00,03/03/2008 11:16:49
k 03/03/2008 00:00:00,03/03/2008 11:16:31
g 03/03/2008 00:00:00,03/03/2008 11:16:24
p 03/03/2008 00:00:00,03/03/2008 11:16:11
l 03/03/2008 00:00:00,03/03/2008 11:16:03
b 03/03/2008 00:00:00,/ / : :
I can't think around this any more, can anyone point me in the right direction?
Thanks,
Stewart