Code:
SQL = "SELECT * FROM Expences WHERE ((('Month') Between # " & DTPicker1.Value & "# And # " & DTPicker2.Value & "#))"
RS.Open , SQL, Conn, adOpenForwardOnly, adLockReadOnly
With DataReport5.Sections("Section1").Controls 'section1 mean that section you create in datareport
.Item("Text1").DataField = RS("ID").Name
.Item("Text2").DataField = RS("Month").Name
.Item("Text3").DataField = RS("Expenditure").Name
.Item("Text4").DataField = RS("Purpose").Name
.Item("Text5").DataField = RS("Amount").Name
End With
Set DataReport5.DataSource = RS
DataReport5.Show
Comment