I am using dataenvironment as my datasource and datareport designer to print the report.I need to view the report when a button is clicked. the code is
Private Sub CmdPrint_Click()

AnalysisReport.Show

End Sub

This cmdPrint is the name of the command object.This is placed in a form.
But the report with null values is displayed. The fields are not retrieved from the database.When i place a break point over the line

analysisreport.show

the values are shown at that time.Please give me a solution for this problem
Thanks and regards,
Anu