+ Reply to Thread
Results 1 to 5 of 5

Query; >= Date/Time

  1. #1
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483

    Query; >= Date/Time

    Hi,
    I have a database.

    The database holds the following four fields:

    Please Login or Register  to view this content.
    I would like to see all the data which was created after 01/03/2009 7pm.

    In an access query, if I put:

    Please Login or Register  to view this content.
    the only problem is that it only shows me data created after 7pm any day after 01/03/2009....

    I dont want this, i want to see "all" data created after 01/03/2009, 7pm..

    any ideas?
    Last edited by pr4t3ek; 03-21-2009 at 01:26 AM.
    --
    Regards
    PD

    ----- Don't Forget -----

    1. Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks

    2. Thank those who have helped you by Clicking the scales above each post.

    3. Please mark your post [SOLVED] if it has been answered satisfactorily.

  2. #2
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483

    Re: Query; >= Date/Time

    okay, this is unresolved..

    does anyone have any solutions?

    thanks.

  3. #3
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Query; >= Date/Time

    How did you gather/enter the data for the "Created" and CreatedTime" fields?

    If you used the =Now() function as a default value, then you may be in luck. Just format one of your field as:

    "yyyy mmm dd - hh:nn:ss"
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  4. #4
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483

    Re: Query; >= Date/Time

    nope...

    i import a text file which contains that data and then i was just wanting a query to show me all the ones created after a certain date/time..

    One solution i have is:
    One query: This gives me anything created on 01/03/2009, after 7pm..
    Second Query: This gives me antyhing created on and after 02/03/2009.
    Third Query: Union Join Query One & Two... this gives me what i need..

    but im wanting to do all of that in one query, there HAS to be a way!

  5. #5
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483

    Re: Query; >= Date/Time

    i just figured it out.. omg, the most n00b question i've ever asked

    SQL code as follows:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1