Results 1 to 2 of 2

Thread: select where = time

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 1999
    Location
    Atlanta
    Posts
    145

    Question

    I want to select from an Access database where = to a time value. I get a data type mismatch in criteria error.
    Anyone have any any ideas?


    SELECT [FaxLog].[FaxIdNbr]
    FROM FaxLog
    WHERE faxarrivaltime="3:36:33 PM";

    Thanks

  2. #2
    Hyperactive Member D12Bit's Avatar
    Join Date
    Oct 2000
    Location
    Guatemala
    Posts
    373

    Lightbulb check the quotes...

    Try this approach...

    Code:
    SELECT [FaxLog].[FaxIdNbr] 
    FROM FaxLog 
    WHERE faxarrivaltime='3:36:33 PM';
    you have to use ' instead of " in a SQL statement when
    you need to establish a comparison


    saludos...
    "Who Dares Wins" - "Quien se Arriesga Gana"
    Mail me at:

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