Share via

refresh popup form

Anonymous
2012-05-07T18:22:07+00:00

I have a main form that calls a second form(popup).  On the first form, when i change record and call the main form that is still open, it does not update the second form which has a text box that points to a query.  When I click on F5 on my keyboard, it updates the form.  How can i update the second form?

this is the code I have currently.

Private Sub EMAILGUID_DblClick(Cancel As Integer)

...

...

        DoCmd.OpenForm "frm_EmailViewer", acNormal

        Forms![frm_EmailViewer].Form.Refresh

...

...

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

8 answers

Sort by: Most helpful
  1. HansV 462.6K Reputation points
    2012-05-07T22:37:04+00:00

    I'm afraid I don't really understand the setup.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2012-05-07T22:33:10+00:00

    What's strange is that the subform in the second form refreshes but the text box in the second form does not refresh.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2012-05-07T22:16:59+00:00

    didn't work, only refreshes when i hit F5 on my keyboard.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2012-05-07T22:15:54+00:00

    didn't work...still not updating the textbox in the second form.

    Was this answer helpful?

    0 comments No comments
  5. HansV 462.6K Reputation points
    2012-05-07T20:57:48+00:00

    Perhaps in the On Current event of the main form

    Private Sub Form_Current()

        If CurrentProject.AllForms("frm_EmailViewer").IsLoaded Then

            Forms!frm_EmailViewer.Refresh

        End If

    End Sub

    Was this answer helpful?

    0 comments No comments