Results 1 to 4 of 4
  1. #1
    justlearning123 is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Jun 2015
    Posts
    17

    trying to use after update macro to change field


    if not to sure how to use the after update macro but what I want is when a field in the "Status" column changes to "ACTIVE" then the field in column "Trans_Date" changes to todays date.. thank you

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Use AfterUpdate event of Status control - is this a combobox?

    If Me.Status = "Active" Then Me.Trans_Date = Date()

    What should happen if Status is changed to something else?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    justlearning123 is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Jun 2015
    Posts
    17
    yes its a dropdown within the table

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Can't have this code behind a table, must be behind a form.

    I never build lookups in table.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 7
    Last Post: 08-23-2014, 05:52 AM
  2. Replies: 4
    Last Post: 01-10-2014, 01:20 PM
  3. Update query to change field data to blank
    By xtrareal22 in forum Queries
    Replies: 3
    Last Post: 12-11-2013, 05:17 PM
  4. Macro to change column name
    By jadog in forum Programming
    Replies: 2
    Last Post: 10-13-2012, 07:23 AM
  5. Replies: 0
    Last Post: 01-12-2011, 12:43 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