• Forms & Reports (A2k/XP)

    • This topic has 2 replies, 2 voices, and was last updated 18 years ago.
    Author
    Topic
    #440794

    Hello All:

    I have a form that is based on a query. On the form is button that print previews a report. Information on the report is based on the same query. If the user makes a change on the form, that change is not reflected on the report until the form is closed and reopened. I have a feeling I need either a refresh or a requery but am not sure as to where it goes. As always, TIA.

    Viewing 0 reply threads
    Author
    Replies
    • #1056781

      You just need to save the current record before you actually open the report. Something like this should work:

      If Me.dirty = True then Runcommand accmdSaveRecord
      docmd.OpenReport “… yada yada…”

    Viewing 0 reply threads
    Reply To: Forms & Reports (A2k/XP)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: