Results 1 to 5 of 5
  1. #1
    LabRatz is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    3

    Changing the default value


    I have a db for payroll. Each payroll run I enter all the data for 200 employees. The period end date and check date are the same for everyone so I set the default values on those two date fields before entering the data. My question is: Is there a way to use another form (or VBA code) to change the default value for those two date fields on the Input Form for the current dates? I don't want to have to enter the dates over and over, but don't want the person I'm training to go into the "properties" to change the default value for those date fields. Any help would be greatly appreciated.

  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,640
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    LabRatz is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    3
    For that to work do I have to create a command button on my form and put that code on the command button? Or is this supposed to go in the default value field of the properties of the date field?

  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,640
    I believe it's commonly put in the after update event of the control.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    LabRatz is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    3
    Great, thanks. I'll try that

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

Similar Threads

  1. Replies: 8
    Last Post: 11-12-2010, 10:55 AM
  2. default value IIf statement
    By jmk909er in forum Forms
    Replies: 0
    Last Post: 10-22-2010, 07:06 PM
  3. Default Value CurrentMonth
    By Bruce in forum Forms
    Replies: 7
    Last Post: 01-27-2010, 08:39 AM
  4. Default window
    By Tareq_1993 in forum Access
    Replies: 2
    Last Post: 11-26-2009, 09:37 AM
  5. Default Value Question
    By ulia in forum Database Design
    Replies: 2
    Last Post: 11-22-2006, 02:37 PM

Tags for this Thread

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