J
John B
Hi,
I am trying to adapt the Mr Lebans routine to export to Pdf and I would like
to print the report based on the data range.
Without the data range is OK, but I don't know where to pass "DataRange"
criteria in the function blRet.
Any suggestions is really appreciate.
Thanks and Regards
John
Private Sub cmdReportToPDF_Click()
Dim blRet As Boolean
Dim stDocName As String
stDocName = "rptOrder"
'Dim DataRange As String
DataRange = "[DateOrder] between #" & [Forms]![frmReport]![txtdatefrom] "#
and #" & [Forms]![frmReport]![txtDateTo] & "#"
blRet = ConvertReportToPDF(stDocName, vbNullString, stDocName & ".pdf",
False, True, 0, "", "", 0, 0)
End Sub
I am trying to adapt the Mr Lebans routine to export to Pdf and I would like
to print the report based on the data range.
Without the data range is OK, but I don't know where to pass "DataRange"
criteria in the function blRet.
Any suggestions is really appreciate.
Thanks and Regards
John
Private Sub cmdReportToPDF_Click()
Dim blRet As Boolean
Dim stDocName As String
stDocName = "rptOrder"
'Dim DataRange As String
DataRange = "[DateOrder] between #" & [Forms]![frmReport]![txtdatefrom] "#
and #" & [Forms]![frmReport]![txtDateTo] & "#"
blRet = ConvertReportToPDF(stDocName, vbNullString, stDocName & ".pdf",
False, True, 0, "", "", 0, 0)
End Sub