Forums

ASP

This topic is locked

ordering by date

Posted 16 Jan 2002 21:01:56
1
has voted
16 Jan 2002 21:01:56 David Behan posted:
Can anyone tell me the code, to order a recordset by the date. Programming in ASP and VBScript.

---------------------
David Behan - bmor.com

Replies

Replied 18 Jan 2002 20:00:40
18 Jan 2002 20:00:40 Tom Kraak replied:
You have a db field containing dates and want to sort on them?

Replied 19 Jan 2002 01:38:14
19 Jan 2002 01:38:14 Owen Eastwick replied:
Try:

SELECT Whatever, WhateverElse FROM TableName ORDER BY DateFieldName ASC


Use ASC, Acsending or DESC, Descending

Regards

Owen.

Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Replied 19 Jan 2002 23:27:17
19 Jan 2002 23:27:17 David Behan replied:
Thanks, got it in the mean time. Wasn't working before cause date/time was not set as the field type in the database. Working properly and understand it now.

Thanks.

---------------------
David Behan - bmor.com

Reply to this topic