Hi!
I have a project.. And I want to create a data report to it.. (within the same project)
How would I invoke it?
Thanks in advance...
Printable View
Hi!
I have a project.. And I want to create a data report to it.. (within the same project)
How would I invoke it?
Thanks in advance...
Hi !
first of all, you should add a report from project windows by right click the mouse - add - data report, open the report and add some label and textbox by dragging the RptLabel and RptTextBox to you report, once you done that, go back to the function where you let user to print and insert codeVB Code:
Private Sub cmdPrint_Click() Set rptReport.DataSource = rsRecordset With rptReport.Sections("Section2") .Controls("lblCompanyName").Caption = "Company Name" End With With rptReport.Sections("Section1") .Controls("txtCompanyName").DataField = _ "Field Name of Company in recordset" End With rptReport.Show End Sub
Thanks... again