ok we will do it in another method
like
put a 2 label objects in page header(section 2) in datareport
and connect the any one of ur database table thru command1 in dataconnection and put it as datareport's data member.
then put the 2 label's names as count1 and count2
in the form put a button and write this code
________________________________________
Private Sub Command2_Click()
Set db = OpenDatabase(App.Path & "\sample.mdb"

Set rs = db.OpenRecordset("select count(*) from xooline"

Set rs2 = db.OpenRecordset("select count(*) from second"

DataReport1.Sections("section2"

.Controls.Item("count1"

.Caption = rs(0)
DataReport1.Sections("section2"

.Controls.Item("count2"

.Caption = rs2(0)
DataReport1.Show
End Sub
_____________________________
this is the another way to assing the values for datareport labels from forms.
i tried this and works fine.
i hope this will help u to solve ur problem.
happy programming
webspy