Results 1 to 2 of 2
  1. #1
    chaddresnick is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Dec 2014
    Location
    Dayton, Ohio
    Posts
    30

    Create Macro on Switchboard to Reset Data


    I have a Yes/No field called "Disciplinary Action" in a table. I would like to create a button that changes all of the entries for every record to a "No" when the button is pushed. Right now, some are no and some are yes.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    I use only VBA:

    CurrentDb.Execute "UPDATE tablename SET [Disciplinary Action] = False"

    A macro can cause an action query object to run.
    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: 2
    Last Post: 03-12-2014, 01:31 AM
  2. Replies: 2
    Last Post: 12-04-2013, 08:09 PM
  3. Replies: 8
    Last Post: 01-17-2012, 02:43 PM
  4. Assist to create Data Macro
    By rkalapura in forum Programming
    Replies: 3
    Last Post: 07-30-2011, 11:12 AM
  5. Create "reset filter" button
    By vanlanjl in forum Access
    Replies: 0
    Last Post: 03-03-2009, 07:36 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