Have u tried setting focus to the report after you open it
or pass in arguments
e.g.
DoCmd.OpenReport "report1", acViewPreview, , , acHidden, y
then in the report code, u can check the args
Private Sub Report_Open(Cancel As Integer)
Dim iCnt as Integer
If IsNull(OpenArgs) = False Then
iCnt = OpenArgs
DoCmd.PrintOut acPages, iCnt, iCnt+4, acHigh
End If
End Sub
so your code will look something like this
y = 1
For x = 1 To intNumRecords
'Print the first 5 pages for each SR
DoCmd.OpenReport "rptReceiptofClaim_LtrFEDE
DoCmd.Close acReport, "rptReceiptofClaim_LtrFEDE
'Set y = starting page of next SR
y = y + 6
Next x
Main Topics
Browse All Topics





by: Makr_Watson27Posted on 2006-07-13 at 17:03:35ID: 17104800
Not offering a solution, but perhaps if you looked at the report code, so it didn't display the data?
Why can't you create a query to display what you want in the report?