Results 1 to 5 of 5
  1. #1
    kelann is offline Learning ... thank you!!
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    132

    Updating Report based upon Updated Form

    I have a form (TrackSelectEventF)
    that opens a report (TrackEventRep)
    based upon an EventProcedure in a combo box:
    Private Sub OpenTrackEventRep_Click()
    DoCmd.OpenReport "TrackEventRep", acViewReport, , "RespEventName = '" & Me.TrackSelectEvent & "'"
    DoCmd.Close acForm, "TrackSelectEventF", acSaveNo
    End Sub
    The opened report (TrackEventRep) lists organizations in the detail part
    with a button (ButtonUpdateStatus) beside each organization
    that opens a form (TrackUpdateStatusF), allowing people to update the status of that organization.

    When the TrackUpdateStatusF is saved, the TrackEventRep is not automatically updated, which makes reasonable sense. When the report is closed and reopened via the steps at the beginning, it is, of course, updated with the most current data.



    Is there any way for this to happen when the TrakUpdateStatusF is saved? Some SQL behind the Save button on the TrackEventStatusF perhaps?

    My current workaround is to have the TrackEventRep close when the ButtonUpdateStatus is pressed, but to update the status of another organization, they must go back to "square 1."

    Thanks for any thoughts!

    --ak

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    AFAIK, once a report is rendered, its dataset cannot be altered. Must close and reopen. Test this with the Refresh button on the ribbon.
    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
    kelann is offline Learning ... thank you!!
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    132
    Thanks, June! Much appreciated, as always!

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Additional note, the dataset of open report (in Report or Layout views) can be filtered. This does not change the report's dataset, just applies a filter to the set.
    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.

  5. #5
    kelann is offline Learning ... thank you!!
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    132
    Thanks, June!

    I made it happen by creating an event procedure liinked to the save button -- it now saves, closes the form, and opens the report, which now has the updates!!!!

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

Similar Threads

  1. Replies: 1
    Last Post: 02-03-2012, 03:51 PM
  2. Replies: 2
    Last Post: 09-15-2011, 09:59 AM
  3. Replies: 1
    Last Post: 09-14-2011, 07:50 AM
  4. Replies: 1
    Last Post: 10-29-2010, 10:46 AM
  5. Force form not to save updated fields
    By Evgeny in forum Programming
    Replies: 2
    Last Post: 04-30-2010, 10:44 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