Consulting

Results 1 to 3 of 3

Thread: Querying dates fails

  1. #1

    Querying dates fails

    Hi folks,

    I have an access database where there is a field with date format dd/mm/yyyy hh:mm:ss

    So, when I try to get data using sql comparasion statements the data comes incomplete. For example (x and time are two of the fields of mTable):

    "SELECT time, x FROM " & mTable & " WHERE time > #18/12/2009 00:00:00#"
    returns only one register, but should be five.

    Is the sintax correct? How can handle this database more efficiently?

    Many thanks!
    My English is bad. Please, have patience...

  2. #2
    VBAX Regular
    Joined
    Oct 2009
    Location
    Fremont, CA
    Posts
    72
    Location

    Your Syntax seems OK to me

    This may not be of much help, but I checked the syntax and it appears fine to me. Could you post the five registers you expect to get returned by your query? Maybe there's something fishy about them.

  3. #3
    VBAX Master stanl's Avatar
    Joined
    Jan 2005
    Posts
    1,141
    Location
    myabe >= rather than just > .02 Stan

Posting Permissions

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