Results 1 to 7 of 7
  1. #1
    leandrosarno is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    4

    Current month in a field as default

    I need help!

    Can anyone help me?



    How do I put the current month as the default value in a field of access?

    Thank you!

    God bless you all!

  2. #2
    ConneXionLost's Avatar
    ConneXionLost is offline Simulacrum
    Windows XP Access 2003
    Join Date
    Jan 2010
    Location
    Victoria, Canada
    Posts
    291
    Hi leandrosarno,

    If you're referring to a field in a table, then go to table design and select the field, then add this:

    Code:
    =Date()
    to the Default Value attribute on the General tab (lower left of screen).

    Cheers,

    May reason prevail!

  3. #3
    leandrosarno is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    4
    Quote Originally Posted by ConneXionLost View Post
    Hi leandrosarno,

    If you're referring to a field in a table, then go to table design and select the field, then add this:

    Code:
    =Date()
    to the Default Value attribute on the General tab (lower left of screen).

    Cheers,

    May reason prevail!

    I am glad that you answered my question about the code, however, I tried to use it. What I need is a code that returns me the name of the month.
    Example: 02/07/2010, ie February.
    I need the name of the month to make calculations of accountability.
    I appreciate if you can help me.

  4. #4
    ConneXionLost's Avatar
    ConneXionLost is offline Simulacrum
    Windows XP Access 2003
    Join Date
    Jan 2010
    Location
    Victoria, Canada
    Posts
    291
    Hi leandrosarno,

    Same area as before, add "mmmm" to the Format.

    Cheers,

  5. #5
    thhui is offline Competent Performer
    Windows XP Access 2002
    Join Date
    Feb 2009
    Posts
    235
    Just fill in the following into the default value of the field you want in the table definition

    Code:
    =Format(Date(),"mmmm")

  6. #6
    leandrosarno is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    4
    Quote Originally Posted by ConneXionLost View Post
    Hi leandrosarno,

    Same area as before, add "mmmm" to the Format.

    Cheers,
    Thank you,

    I'll try and return the answer.
    Wait until tomorrow, please.

    God be with you

  7. #7
    leandrosarno is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    4
    Quote Originally Posted by thhui View Post
    Just fill in the following into the default value of the field you want in the table definition

    Code:
    =Format(Date(),"mmmm")
    Thank you,

    I'll try and return the answer.
    Wait until tomorrow, please.

    God be with you

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

Similar Threads

  1. Default Information for an existing field HELP
    By opinionsrfun in forum Access
    Replies: 1
    Last Post: 06-19-2013, 06:30 AM
  2. month function..
    By thewabit in forum Programming
    Replies: 13
    Last Post: 04-19-2010, 10:01 PM
  3. SQL Query by day to end of month
    By tcasey in forum Queries
    Replies: 0
    Last Post: 10-07-2008, 09:55 PM
  4. Default Value in table = Field plus 3 days
    By AmyLynnHill in forum Access
    Replies: 1
    Last Post: 08-03-2008, 01:58 AM
  5. Replies: 1
    Last Post: 12-09-2005, 09:27 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