Default Date

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BurtonBach
    New Member
    • Oct 2006
    • 58

    #1

    Default Date

    This question is in regards to a text box on a form in Access. Is there a way to make the default value setting default to the first day of the current month?
  • nico5038
    Recognized Expert Specialist
    • Nov 2006
    • 3080

    #2
    Try, e.g. in the OnOpen event of the form:

    Code:
    me.txtDatefield = dateserial(year(date),month(date),1)
    Nic;o)

    Comment

    • FishVal
      Recognized Expert Specialist
      • Jun 2007
      • 2656

      #3
      Something like
      =DateSerial(Yea r(Date()),Month (Date()),1)

      Kind regards,
      Fish

      Comment

      • BurtonBach
        New Member
        • Oct 2006
        • 58

        #4
        That worked. Thank you!

        Comment

        Working...