Cycle thru the recordset,sending each to the printer....
Code:
Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" ( _
ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long
sub btnPrintFiles_click()
Set rst=currentDb.openrecordset("qsMyQuery")
with rst
While not .eof
call Print1File( .fields("FilePath") ) 'Send the field to the printer
.moveNext
Wend
end with
set rst = nothing
end sub
Public Function Print1File( FileName As String)
On Error Resume Next
Dim X As Long
X = ShellExecute(0, "Print", FileName, 0&, 0&, 3)
End Function