Share via

Access Report duplicating same record

Anonymous
2018-06-02T20:41:53+00:00

Hey folks, 

I'm having trouble when I use my form to print a report.

I have it set up so that my form has a print button which prints the current record on the screen. It worked perfectly for a while but then all of a sudden instead of printing one record on one page it is printing the same record on 4 pages. 

I'm not sure what changed as it was working fine earlier.

Any help would be greatly appreciated.

Thanks,

E

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

6 answers

Sort by: Most helpful
  1. ScottGem 68,830 Reputation points Volunteer Moderator
    2018-06-02T23:47:55+00:00

    It looks from your screen shot that you are not using a bound report. I really have no clue why not. The better way to do this is to bind your report to a query that is based on the Recordsource of your form. Then your print button is simple:

    DoCmd.OpenReport "reportname",acViewPreview,,"[keyfield] = " & Me.keyfield

    Whenever you ask a question that involves code being run, you need to show us the code you are using, Without seeing the code its hard to diagnose he problem. Or you can follow my suggestion on how to set up the report and the button.

    Was this answer helpful?

    0 comments No comments
  2. Duane Hookom 26,825 Reputation points Volunteer Moderator
    2018-06-02T22:05:49+00:00

    Is your report based on a Record Source? Have you looked at the record source to see how many records is returns?

    Do you have code that filters the report?

    What is the code behind the print button?

    Was this answer helpful?

    0 comments No comments
  3. Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
    2018-06-02T21:54:06+00:00

    What is the RecordSource for the report? It should be blank in this case.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2018-06-02T21:34:21+00:00

    Unfortunately due to the nature of the form I cannot. However, I can post a couple of pictures of the form and report itself

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2018-06-02T20:49:19+00:00

    To provide the most helpful answer, some more information is needed.

    Would you be able to save a copy of the file without any sensitive data to OneDrive, Google Drive or Dropbox and post the link to the file as a reply.

    Thanks.

    Was this answer helpful?

    0 comments No comments