Click to See Complete Forum and Search --> : Data Report


Djo
June 13th, 2000, 10:30 AM
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

Johnny101
June 13th, 2000, 11:04 AM
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