Hello Folks;
I use a method similar to this:
Private Sub Command175_Click()
Dim strWhere As String
If Me.Dirty Then 'Save any edits.
Me.Dirty = False
End If
If Me.NewRecord Then 'Check there is a record to print
MsgBox "Select a record to print"
Else
strWhere = "[Repetitive # or Name assigned] = """ & Me.[ Repetitive # or Name assigned] & """"
DoCmd.OpenReport "Repetitive Listing", acViewPreview, , strWhere
End If
End Sub
Where I get a loan number from a form. It actually previews the correct record as the first report, but doesn't tie the correct sub report - and proceeds to print all the records of the table associated with the sub report.
If I use an alternate DB with just a small number of records, and print them all (no docmd), they are properly associated.
I am at my wits end...do I need to also pass the parameters to the subreport?
Any help worshipped...and thanks!