select records in access table where date is equal to specific date

Posted on 2007-07-24
Last Modified: 2010-03-20
I have an Access database that has a datetime field in it. I need to read records from my tblOrder table and only select records where the date is equal to today.

How would I code something like this? I am using the SQL statement in my ASP script.

Thanks in advance.
Question by:samic400
    1 Comment
    LVL 142

    Accepted Solution

    select * from yourtable where datefield >= date() and datefield < dateadd("h", 24, date())

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    SQL - handling a null and Procedure OPTIMIZE 8 29
    Oracle SQL Syntax 8 40
    Dsum and Max 10 28
    Case statement to sum values - T-SQL 3 30
    'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
    PL/SQL can be a very powerful tool for working directly with database tables. Being able to loop will allow you to perform more complex operations, but can be a little tricky to write correctly. This article will provide examples of basic loops alon…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now