February 10th, 2013, 04:38 AM
Hello Guys I am using DataReport for my Receipt but i dont use DataEnvirontment And This is My Code..
Help Me guys to find what what is the problem of my code.. thanks
Private Sub receipt()
Dim rsReport As New ADODB.Recordset
rsReport.Open "Select Receipt, ProductName, Quantity, TotalPrice From Dailyrecord", acd, adOpenForwardOnly
If rsReport.RecordCount > 0 Then
Set DataReport1.DataSource = rsReport
.Sections("Section2").Controls("lblreceipt") = "Receipt"
.Sections("Section1").Controls("txtproduct").DataField = "ProductName"
.Sections("Section1").Controls("txtqty").DataField = "Quantity"
.Sections("Section1").Controls("txtotal").DataField = "TotalPrice"
February 10th, 2013, 09:00 AM
Re: Datareport Error
It would help if you told us what the error was and where it occurs.
Always use [code][/code] tags when posting code.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.