Results 1 to 2 of 2
  1. #1
    ebrommhead is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Location
    Mississauga
    Posts
    28

    How to update a table from a command button on a report.


    I have a table that holds information about customer collection efforts. Each effort has its own id, verbiage, entry date and follow up date (if necessary). I have a report that shows all efforts that have a follow up date. I also have put a resolved button on this report, so that if the effort is resolved they can click it to update the table and it will not show on future reports. The problem is that I can't get the button to update the table with the resolved current date.

    Appreciate any help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    Show the code you attempted so it can be analyzed.

    Is the 'resolved' field a datetime? Probably can do something like:

    CurrentDb.Execute "UPDATE tablename SET fieldname=Now() WHERE ID=" & Me.ID
    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: 4
    Last Post: 11-12-2012, 04:59 PM
  2. Replies: 12
    Last Post: 03-14-2012, 10:54 AM
  3. Command button to open Report
    By swagger18 in forum Programming
    Replies: 0
    Last Post: 11-17-2011, 02:56 AM
  4. Combo box & Command button to report
    By Solstice in forum Reports
    Replies: 4
    Last Post: 09-10-2011, 10:12 PM
  5. Replies: 1
    Last Post: 07-27-2010, 02:27 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