There may be a much simpler way to do this but the problem I find with Access date/time fields is that they have to be formatted in a way which is different than the date formatting asp gives you. So I use a brute-force approach and convert the dates into the proper format manually. In this example, I query to get the dates so you can see what's going on but would want to adjust the SQL statement to your purposes (SELECT newsstory, title FROM...). There's a reply to a discussion somewhere by Douglas Poston in which he illustrates a simpler method but I haven't managed to get it to work so here's the way I would do it:<br><br><br>ASP CODE:<br>----------------------<br>Function ODBCdatestamp(datestamp)<br> d = Array (y, "yyyy", m, "m", d, "d", h, "h", mn, "n", s, "s"

<br> for i = 0 to 10 step 2 <br> d(i) = datepart(d(i+1), datestamp)<br> if len(d(i)) = 1 then d(i) = "0" & d(i) end if<br> next<br> ODBCdatestamp = "{ts '" & d(0) & "-" & d(2) & "-" & d(4) & " " & d(6) & ":" & d(8) & ":" & d(10) & "'}"<br>End Function<br><br>set db = server.createObject("ADODB.connection"

<br>db.open "testdatabase"<br>set rec = db.execute("SELECT * FROM cart WHERE dts BETWEEN "&ODBCdatestamp(now-5)&" AND "&ODBCdatestamp(now)&" ORDER BY dts desc"

<br>do while NOT rec.EOF<br> response.write(rec("dts"

&"<br>"

<br> rec.movenext<br>loop<br><br><br>RESULTS ON MY COMPUTER:<br>-------------------------<br>7/18/00 1:10:04 PM<br>7/17/00 1:26:05 PM<br>7/14/00 12:41:54 AM<br>7/14/00 12:41:20 AM <p>--Will Duty<br><a href=mailto:wduty@radicalfringe.com>wduty@radicalfringe.com</a><br><a href= > </a><br>