|
-
Jul 22nd, 2003, 10:41 AM
#1
Thread Starter
Fanatic Member
Data Report/Environment
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...
-
Jul 23rd, 2003, 01:18 AM
#2
Junior Member
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 code
VB 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
-
Jul 23rd, 2003, 09:52 AM
#3
Thread Starter
Fanatic Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|