Results 1 to 3 of 3
  1. #1
    CQCDave is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Nov 2014
    Posts
    47

    Set Date Field

    I have a form with is bound to a Task Details that is bound to a table Tasks. When the Status field on the form id changed to "In Progress" i want the Start Date field on the form updated to current date. i have very little VBA experience. This is what i have so far.


    Private Sub Status_AfterUpdate()
    If Me.Status = "In Progress" Then
    Start Date = [Date]
    End If
    End Sub

    Thanks, in advance, for the help.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    I'll start the responses with a link to Reserved Words. Words you should not use for fields in tables or controls on forms.
    http://www.allenbrowne.com/AppIssueBadWord.html

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Since this thread has been marked as Solved, can I assume it was your choice of Reserved words that was causing the issue?

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

Similar Threads

  1. Replies: 6
    Last Post: 06-26-2015, 08:55 PM
  2. Replies: 20
    Last Post: 01-13-2015, 02:23 PM
  3. Replies: 7
    Last Post: 06-20-2014, 08:25 AM
  4. Replies: 2
    Last Post: 05-22-2014, 06:11 PM
  5. Replies: 2
    Last Post: 03-31-2012, 07:53 AM

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