Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form and subform data should be sent to a report

Status
Not open for further replies.

Leaner79

Programmer
Jan 17, 2006
25
0
0
BW
Hi,
I have a form with 3 subforms. All of the tables share the same primary key so they are linked..
I would like to have a report that prints the curent record displayed.
Hpw can i have the report have subreports?
 
I would like to have a report that prints the curent record displayed.
Put something like this in the onclick() of the print button:
Code:
Private Sub cmdProforma_Click()
    Dim stDocName As String
    Dim stWhere As String
    stDocName = "rprtProforma"
    stWhere = "OperationsID=" & Me.operationsID
    DoCmd.OpenReport "rprtProforma", acPreview, , stWhere
End Sub
Don't understand the question:
Hpw can i have the report have subreports?

Pampers [afro]
You never too young to learn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top