J
Jonas
I have a table with links on it to PDF files. I would like to print
the files in the order that they appear in the table. When I run the
code to print out the files, they seem to come out of the printer in a
random order. Below is a snipet of my code. Does anybody have any
suggestions?
Do Until myRecordset.EOF
tempname = myRecordset.Fields(1).Value
If tempname <> "" Then
tempname2 = Replace(tempname, "#", "")
If fso.FileExists(tempname2) Then
ADOBEPATH = "C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe"
PDFFILE = tempname2
Shell """" & ADOBEPATH & """/p /h """ & PDFFILE & """"
End If
End If
myRecordset.MoveNext
Loop
the files in the order that they appear in the table. When I run the
code to print out the files, they seem to come out of the printer in a
random order. Below is a snipet of my code. Does anybody have any
suggestions?
Do Until myRecordset.EOF
tempname = myRecordset.Fields(1).Value
If tempname <> "" Then
tempname2 = Replace(tempname, "#", "")
If fso.FileExists(tempname2) Then
ADOBEPATH = "C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe"
PDFFILE = tempname2
Shell """" & ADOBEPATH & """/p /h """ & PDFFILE & """"
End If
End If
myRecordset.MoveNext
Loop