CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Data Report

  1. #1
    Join Date
    May 2000
    Posts
    53

    Data Report

    I want to create a data report attached to a recordset (dataEnvironment). When the user is in the form "Contrat", he wants to print only one record (the record that is on the screen) but when the datareport is opening, all the records are printed, but I want only the only one that the pointer is on in the form!! I tried to put,in the Initialize code of the data report, a loop which positions to the good record but it still prints all the records. What can I do?

    Thanks



  2. #2
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: Data Report

    Here's a sloppy, quick and dirty way to get around it...

    Create a seperate table to hold the one record you want to report on. Then when the user clicks the "report" button, insert the currently shown record into this new "reporting table". tell the data report to look at that table (which only has the one desired record).

    Just a dirty thought.

    John



    John Pirkey
    MCSD
    http://www.ShallowWaterSystems.com
    http://www.stlvbug.org
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured