Results 1 to 2 of 2
  1. #1
    tylerg11 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Posts
    200

    Date expanding?


    I want my query date field to only be in short date format. This is because if I try to filter for all records for a certain date, it will also include the time (since that is what was stored in the table), and include the time in the filter. I want to use this query to "trim out" the time so only the date part comes through as the query data. I set the format to Short Date, but this still happens when I click on the field. Why is this??

    Click image for larger version. 

Name:	3-4-2013 2-08-56 PM.jpg 
Views:	7 
Size:	10.4 KB 
ID:	11406

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    In a new field in your query create an expression Int(YourDateField). Because dates are recorded in Access as numbers with the integer part representing the date and the decimal part representing the time, this will then give you only the date portion of the field. Use this new field to filter your query for dates.

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

Similar Threads

  1. Replies: 3
    Last Post: 08-21-2012, 03:05 PM
  2. expanding access database
    By sloppyjoe778 in forum Access
    Replies: 8
    Last Post: 12-12-2011, 12:13 AM
  3. Expanding a form's data fields
    By hertfordkc in forum Forms
    Replies: 6
    Last Post: 07-18-2011, 12:33 PM
  4. Expanding Memo Field in Form
    By AKQTS in forum Forms
    Replies: 3
    Last Post: 07-26-2010, 08:51 AM
  5. Reports- Auto Expanding Fields
    By mojo53777 in forum Forms
    Replies: 1
    Last Post: 01-10-2008, 05:53 PM

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