Results 1 to 6 of 6
  1. #1
    Alphix is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    61

    Query does not pull up data for date 12/08/2014...I am totally lost; please help.

    Query does not pull up data for date 12/08/2014...I am totally lost to why not; please help.





    Please see attachment.

    Test Query 2.zip


    Thanks a bunch.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    The date values in the table have a time component, hidden by the format of the field.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Alphix is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    61
    Thanks...I totally forgot about that.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    No problemo.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Alphix is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    61
    How can I have a date entered into a variable without the time component.

    I have tried using Date()...But once I go to the other line the parenthesis disappear?

    Also Now() function has a time component.

    I am not sure how to have just a straight date entered.

    Please Advise.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    You can use Date(). Sometimes it will drop the parentheses, but it should still work. If you have a field named Date and need to disambiguate, use VBA.Date in code.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 02-18-2014, 07:25 PM
  2. Replies: 3
    Last Post: 01-27-2014, 02:45 PM
  3. Query to Pull from Date Range & Check 2 Areas
    By esh112288 in forum Queries
    Replies: 9
    Last Post: 11-12-2013, 10:05 PM
  4. Replies: 3
    Last Post: 04-19-2013, 12:49 PM
  5. Totally lost!!
    By JPP in forum Access
    Replies: 7
    Last Post: 02-04-2013, 10:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums