Hello,
I have a querydef which a report is based off of. The query is created, the report is opened based off the query and then the query is deleted. I am having an issue when the report is long enough to reach two pages it only displays the first page of the report. I have the report to display in acViewReport. I dont understand why it is restricting the report to one page. When I changed the report dispy to preview it shows all of the pages.
Has anyone come accross this in the past? Any workarounds?
I have a querydef which a report is based off of. The query is created, the report is opened based off the query and then the query is deleted. I am having an issue when the report is long enough to reach two pages it only displays the first page of the report. I have the report to display in acViewReport. I dont understand why it is restricting the report to one page. When I changed the report dispy to preview it shows all of the pages.

Has anyone come accross this in the past? Any workarounds?
PHP:
Dim strsql As String
Dim qdf As DAO.QueryDef
DBEngine(0)(0).QueryTimeout = 0
strsql = "SELECT * from Tbl1";
Set qdf = CurrentDb.CreateQueryDef("test", strsql)
DoCmd.OpenReport "rptTest", acViewReport