Results 1 to 2 of 2
  1. #1
    normever is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Feb 2009
    Posts
    2

    Report using current DAO record data

    I have a DAO recordset that loops through the records one at a time. It prints PDF files for each record where the path is contained in a field. I want to prepare a cover sheet for each PDF with information contained in the current record only each time it loops and prints the PDF. How do i define the recordsource for the Report using the current record of the DAO recordset only?



    The DAO is defined by a query. If I assign the query as the recordsource for the Report I get all the records in the recordset on the report. The report does not recognize by temporary DAO recordset as a valid recordsource.

    thank you,

    --Norm Everhart

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    Cannot use Recordset as the data source for a report. The report RecordSource must be a table, query, or SQL statement.

    For code that outputs report to PDF, review https://www.accessforums.net/import-...ges-25042.html

    For code that combines multiple PDFs into a single PDF, review https://www.accessforums.net/access/...pdf-25574.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Email a report of the current record.
    By jonudden in forum Reports
    Replies: 4
    Last Post: 08-21-2023, 07:37 AM
  2. Print Report from Current Record
    By hnkford in forum Reports
    Replies: 15
    Last Post: 05-22-2015, 08:08 AM
  3. Print current record to a report
    By drawc in forum Access
    Replies: 2
    Last Post: 01-15-2012, 12:48 AM
  4. Report from current record
    By billgyrotech in forum Reports
    Replies: 18
    Last Post: 07-26-2011, 03:39 PM
  5. Appending Data to Current Record on a Form
    By ganoudij in forum Access
    Replies: 2
    Last Post: 06-08-2011, 07:18 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