Results 1 to 3 of 3

Thread: Filtering dates

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274
    I have used this two ways to tray to filter by som date filed and I got an error.

    SELECT *
    FROM Orders
    WHERE ShippedDate = #5/10/96#

    SELECT *
    FROM Orders
    WHERE ShippedDate = DateValue('5/10/96')

    Any odea about any other way to do it?
    Ulises Vázquez
    [size=1.7]Oracle DBA Certified Professioanl
    Visual Basic 6 Developer
    Crystal Reports Designer
    [/size]

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    Maybe this way:

    SELECT *
    FROM Orders
    WHERE ShippedDate = '5/10/96'


    Are you using ADO or DAO? Or is this just in Access?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274
    Didn't function that way cluniet. I'm using ADO 2.1, VB6 and FoxPro as database.
    Ulises Vázquez
    [size=1.7]Oracle DBA Certified Professioanl
    Visual Basic 6 Developer
    Crystal Reports Designer
    [/size]

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