Report Format

  • Thread starter Thread starter ar
  • Start date Start date
A

ar

i don't know what wrong with this syntax
DoCmd.OpenReport ("Legal AP By Vendor"), acViewPreview
Reports("Legal AP By Vendor").Section(acDetail).Visible _
= False
whenever i run it the first page in the report shows
deitail but the second one dosent
thank you
 
ar said:
i don't know what wrong with this syntax
DoCmd.OpenReport ("Legal AP By Vendor"), acViewPreview
Reports("Legal AP By Vendor").Section(acDetail).Visible _
= False
whenever i run it the first page in the report shows
deitail but the second one dosent


The report's opening and displaying is asynchronous from the
processing of whatever code started the process. You should
do this kind of thing in the report's Open event.
 
Back
Top