Printing Query Results

  • Thread starter Thread starter Sheldon Penner
  • Start date Start date
S

Sheldon Penner

Is it possible to use VBA to run a select query, then send
the results to the printer?
 
Sheldon,
You can, but you would get more control over appearance, etc. if you just
made the query the recordsource for a report. Print the report.

In any event, to print a query directly, code:

DoCmd.SelectObject acQuery, "QueryName", True
DoCmd.PrintOut

See Access Help for the other arguments available.
 
Back
Top