Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access 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 February 4th, 2004, 07:11 PM
Authorized User
Join Date: Jun 2003
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datasheet View Column Width - VBA

When a form is in Datasheet view what is the VBA to retrieve the width of any given column. If you reference the controls collection, you get the width of the control in twips as if the form was in form view not datasheet view.

Thanks in advance,
Old February 5th, 2004, 02:32 PM
Authorized User
Join Date: Jun 2003
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts

I figured it out late last night (no help to the Help file). Does anyone else think the help file (VBA specifically) has gone down hill in the past couple of versions?

Just in case anyone is curious.

There are some properties that are specific to controls when the form is in datasheet view. (not an all inclusive list)


I'm using these to allow the user complete control over the viewing of the data in datasheet view. There is a button that lets them remember their specific layout. When the form is opened the defaults for a user are read and applied to the form.

I thought there might be a performance issue, but the form opens in a fraction of a second.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Datasheet view of a Query - Field Format arfa Access 4 March 13th, 2006 12:34 PM
Refresh datasheet-view subform’s column headings f pkaptein1 Access 2 June 1st, 2005 04:27 PM
Re: Add button on a form with datasheet view lxu Access 5 March 8th, 2004 06:19 PM
Datasheet View - Customize Dataman Access 0 February 16th, 2004 02:07 PM

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