Wrox Programmer Forums
BOOK: Access 2003 VBA Programmer's Reference
This is the forum to discuss the Wrox book Access 2003 VBA Programmer's Reference by Patricia Cardoza, Teresa Hennig, Graham Seach, Armen Stein; ISBN: 9780764559037
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Access 2003 VBA Programmer's Reference 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 5th, 2005, 06:42 AM
Registered User
Join Date: Jun 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default drawing

i would like to draw rectangles and boxes with dims, using access VBA
Old June 5th, 2005, 09:32 AM
Friend of Wrox
Join Date: Nov 2004
Posts: 248
Thanks: 0
Thanked 1 Time in 1 Post

This forum is specifically for the "Access 2003 VBA Programmer's Reference" book. A more appropriate place to ask this question would be this P2P forum: http://p2p.wrox.com/access-vba-80/

I'll provide an answer. But I suggest future questions be diverted to the other forum.

The easiest way to do this would be to create the object on the form or report and set the Visible property to No. Then in your code, manipulate that object as desired setting the Left, Top, Height and Width and whatever other properties you want to set. When you have the object set the way you want, set the Visible property to True.

Of course you can go through the trouble to define the object in code. To do so, you would Dim the object as a Control and then use the CreateControl method to create the control. From there you're on your own. I'd use the first method because it's so much easier. :D

Randall J Weers
Membership Vice President
Pacific NorthWest Access Developers Group

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drawing Shapes cbulutlar Javascript 2 March 6th, 2006 02:25 PM
drawing fergo Access VBA 0 June 6th, 2005 12:35 PM
Drawing in C# stripytiger VS.NET 2002/2003 4 August 25th, 2004 10:01 AM
drawing with VBA cutovoi Excel VBA 1 February 19th, 2004 07:22 PM

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