A
alathwell
Hello, I am running the followind code to directl convert acces report into
PDF format. The code work perfectly on one report but not on another. When
the first report is complet it opens acrobat allowing you to view the PDF
file. The code runs in both cases with no error messages, but the second
report just doesn't seem to complete and doesn't open acrobat.
The only difference between reports is the second report has an additional
subreport level.
This is the code i am using.
Select Case Me![QuoteTypeCheckFrame]
Case 1
strDoc = "rptLongQuote"
strfile = "C:\QuotesDatabase\SingleQuote.pdf"
DoCmd.OutputTo acOutputReport, strDoc, acFormatPDF, strfile, True
Case 2, 3
strDoc = "rptSeries"
strfile = "C:\QuotesDatabase\SeriesQuote.pdf"
DoCmd.OutputTo acOutputReport, strDoc, acFormatPDF, strfile, True
End Select
Any suggestions would be appreciated.
Regards
alathwell
PDF format. The code work perfectly on one report but not on another. When
the first report is complet it opens acrobat allowing you to view the PDF
file. The code runs in both cases with no error messages, but the second
report just doesn't seem to complete and doesn't open acrobat.
The only difference between reports is the second report has an additional
subreport level.
This is the code i am using.
Select Case Me![QuoteTypeCheckFrame]
Case 1
strDoc = "rptLongQuote"
strfile = "C:\QuotesDatabase\SingleQuote.pdf"
DoCmd.OutputTo acOutputReport, strDoc, acFormatPDF, strfile, True
Case 2, 3
strDoc = "rptSeries"
strfile = "C:\QuotesDatabase\SeriesQuote.pdf"
DoCmd.OutputTo acOutputReport, strDoc, acFormatPDF, strfile, True
End Select
Any suggestions would be appreciated.
Regards
alathwell