Results 1 to 4 of 4
  1. #1
    fabian2405 is offline Novice
    Windows XP Office 365
    Join Date
    Jun 2022
    Posts
    1

    Printing Single Record

    Dear All,

    I am relatively new to ACCESS.


    I was doing a report form and have managed to create table and the form.
    Now, when I do a report and try to print, it prints all the RECORDS.

    Could someone help to print an individual report based on the ID.

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    See this vba reference. You must identify the record or records you want to report, otherwise all records are reported.

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,906
    So if you do not tell Access which record you want to print in the report, how is it supposed to know?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  4. #4
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,563
    Hi Fabian

    If your Form is set as Single Form then you need to go into Design View of the Form

    Then add a Command Button in the Header.

    Then in the On Click Event of the Button you would need something along the lines of:-

    Code:
     If Me.Dirty Then Me.Dirty = False
    
      DoCmd.OpenReport "ReportName", acPreview, , "[RecID]=" & me.RecID
    Code:
    
    
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

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

Similar Threads

  1. Printing single record from form view
    By bfg in forum Access
    Replies: 7
    Last Post: 08-24-2020, 09:50 AM
  2. Printing single record from Listbox
    By Benzer420 in forum Access
    Replies: 3
    Last Post: 08-17-2015, 02:48 AM
  3. Report printing a single record
    By gebmiller1984 in forum Access
    Replies: 5
    Last Post: 01-15-2015, 03:47 PM
  4. Replies: 2
    Last Post: 09-10-2014, 08:48 AM
  5. Printing a single record in a report
    By kelann in forum Reports
    Replies: 28
    Last Post: 10-04-2012, 10:07 AM

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