Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 13th, 2007, 04:44 AM
Registered User
Join Date: Jun 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Print Query in Landscape using VBA

I have been trying for a while to print a query in Landscape using VBA.

The query, by default is set to Portrait but i want to use VBA to set the orientation to Landscape and print it however while this seems quite straightforward for Reports and Forms the information i have found on these i have not been able to apply to a Query.

Can anyone suggest anything ?

Old June 13th, 2007, 09:52 AM
Friend of Wrox
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts

Make a report out of it instead of trying to print the query?

Old June 19th, 2007, 04:25 AM
Registered User
Join Date: Jun 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

I thought about this but there are about 400 queries all in all what are run in sets of upto 100.

I could make a generic report and change the recordset to point at each query one at a time and print them but that seems like a awkward way to do this and also the column widths would be a big problem and eash query displays very different data

Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript print in landscape vsr Javascript How-To 0 November 14th, 2007 05:23 PM
Divided by Zero and Print Landscape mateenmohd Classic ASP Basics 3 May 14th, 2005 05:01 AM
Report, VBA & Print Henri Access VBA 1 November 8th, 2004 11:26 AM
How can I print MsChart.object in landscape? all21 Beginning VB 6 0 December 10th, 2003 04:48 AM
Command Button to Print in Landscape Orientation brlevy Access 3 June 9th, 2003 11:59 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.