SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Retrive data by entering 2 dates

    hi
    i want to display data which is in access database and one date field, i want to show a data from date1 to from date 2
    somene help me

  2. #2
    SitePoint Enthusiast
    Join Date
    Feb 2005
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Need to run a SQL query:
    Code:
    SELECT * 
    FROM table 
    WHERE date>=#1/1/2007# AND date<=#1/2/2007#
    (all records between 1/1/07 and 1/2/07)

    Then display however you need.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •