Results 1 to 2 of 2

Thread: Database & Date

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Location
    India
    Posts
    14

    Database & Date

    I have 2 fields in my access database namely

    date_from and date_to.

    Now I am getting two dates in intervels from the user, for example;

    27/02/2002 to 05/03/2002.

    Now I want to check whether any one of the date between the above mentioned dates are exists between the date_from and date_to in the database. Please help me to search with Database. I am using Simple Data Control.

  2. #2
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950
    Can you not use the filter property?

    DataControl.Filter = "Date_From >= " #27/02/02# & " AND Date_To <= " & #05/03/02#

Posting Permissions

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



Click Here to Expand Forum to Full Width