Thanks for your help, I am not a programmer and I am searching for a simple solution (if it exists), I've seen that many simple programs on the web use the printer screen just like the MS Office products. Any one any other suggestions??
Thanks
Nasos
----- SA wrote: -----
Nasos:
1.) The common dialog control will not help you with choosing which pages to
print. It will only set the computer's default printer and if you are using
Access 2002 or 2003 that is not enough to change printers you also have to
change the printer object of the Application object. (See the help file).
2.) You can do a rudimentary function like that listed below to pop the
print dialog, but it has draw backs such as screen flashing and moving the
db window up in the z-order, but it may work for you.
3.) If you want a full blown solution to this issue, then take a look at our
"On the Fly Printing" classes and functions for Access that you'll find on
our web site.
HTH
--
Steve Arbaugh
ACG Soft
http://ourworld.compuserve.com/homepages/attac-cg
=========begin code=========
Public Function PrintWithDialog (strReportName as String, Optional objForm
as Object)
'Supply the report name in the first parameter and a form object (i.e. Me)
as the second
On Error resume next
Docmd.Echo False
Docmd.SelectObject acReport, strReportName, True
Docmd.RunCommand acCmdPrint
If Not objForm Is Nothing Then
Docmd.SelectObject acForm, objForm.Name
End if
Docmd.Echo True
End Function
========end code============