see the code below it will help you...
your datareport must set it source to the data environment that has a variable(text1. text) which will match and filter the record to be displayed in your datareport



If DataEnvironment 3.rspayreg.Stat e Then DataEnvironment 3.rspayreg.Clos e
DataEnvironment 3.payreg (Text1.Text)
DataReport3.Sho w