Results 1 to 5 of 5
  1. #1
    frdebelo is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    4

    Custom Date in Query

    I have a query I am merging with Publisher and need a specific date every month. In this date, I need the day of the month to be the 9th; the current month for the current year.



    Example;

    We are in sept so need the date field to be September 9, 2011. Next month when I run the report, the query will populate this column with October 9, 2011, and so on.

    Is there a date function i can format for this field?


    Frank

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    In an expression your query:

    Current Month: Month(Date()) & " "&"9,"&" "&Year(Date())

    Alan

  3. #3
    frdebelo is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    4
    Thank you Alan, works great.
    The date is formatted in 9 9,2011,
    Is there a way I can make it September 9, 2011?

    Thank you for your help.

    Frank

  4. #4
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Look here for formatting dates.

    http://www.techonthenet.com/access/f...ate/format.php

    Alan

  5. #5
    frdebelo is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    4
    That works, thanks again Alan.
    Current Month: Format(Month(Date()) & " " & "9," & " " & Year(Date()),"mmmm/dd/yyyy")

    Frank

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

Similar Threads

  1. query to update a date based on another date
    By tkendell in forum Access
    Replies: 3
    Last Post: 06-29-2011, 09:32 PM
  2. Custom Form to Collect Query Parameters
    By andersonEE in forum Forms
    Replies: 5
    Last Post: 03-14-2011, 02:17 PM
  3. Replies: 2
    Last Post: 08-05-2010, 09:07 AM
  4. Print custom date for data validation
    By TheFuzzball in forum Database Design
    Replies: 2
    Last Post: 10-26-2009, 06:48 AM
  5. Custom Query Parameter Prompts-- Problem
    By tylerthompson in forum Forms
    Replies: 11
    Last Post: 07-07-2009, 10:28 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