• Report opens differently from form (Access 2000)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Report opens differently from form (Access 2000)

    Author
    Topic
    #439881

    Subject edited by HansV – “Solar” (your user name) is not a very descriptive subject for a post about Access

    Why is it so that when i open the report by itself it opens with all the records, while when i open it through the form, it shows only the first record?

    Viewing 0 reply threads
    Author
    Replies
    • #1052217

      Look at the On Click event procedure of the command button Command15. It filters the report to display only the orderid from the current record in the form:

      stLinkCriteria = “orderid = ” & Me![orderid]
      DoCmd.OpenReport stDocName, acViewPreview, , stLinkCriteria

    Viewing 0 reply threads
    Reply To: Report opens differently from form (Access 2000)

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

    Your information: