Thnaks for the replies.

Yes, it's a date/time field (in access, I should add)

I do an order by postdate but it orders only by date, not by time, so 
all posts for a particular date appear in random order.

Can you explain more about between Date() and DateAdd("d", 1, Date
()) ? I haven't a clue.


Thanks again.



--- In [EMAIL PROTECTED], "Chris Hagwood" 
<[EMAIL PROTECTED]> wrote:
> 
> > SQL="Select count (id) from post WHERE postdate =#" & Date() & "#"
> > todaysposts=poststoday(0)
> > response.write There were " & todaysposts & " posts today."
> 
> You will need to do a between Date() and DateAdd("d", 1, Date()) to 
get all
> of today's posts.
> 
> For getting the posts in order, make sure you are doing a OrderBy 
postdate
> statement.



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to