Results 1 to 4 of 4

Thread: If you can answer this...

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Posts
    18
    Is it possible to scan a database, for a field that match the following statement??:
    Month(field) = Month(date) and Day(field) = Day(Date)
    (I want the program to get the fields that match with the current day)


  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    What DBMS are you using?

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Posts
    18
    DAO 3.6

  4. #4
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    Access, aka Jet.

    I've never done it but you should be able to use the format command.

    For example:

    select * from table where Format([HireDate],"m")=12 and
    Format([HireDate],"d")=25

    should get a hiredate of 12/25

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