Solved

Trouble setting column widths on subforms.

Posted on 2014-07-24
3
439 Views
Last Modified: 2014-07-24
I have a lot of trouble getting the column widths to remain as I set them in Access 2010.
I create a new form and use the wizard to create a subform based upon an existing query or table.
Then I open the form in form view and drag the columns to the width I want them in the subform.
Then I save the form and close it.
When I open the form again the columns in the subform go back to what they were before I adjusted them.  Why don't the columns remain at the width I set them to?
0
Comment
Question by:dsoderstrom
  • 2
3 Comments
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
ID: 40218102
I assume that this is a datasheet.

Open the subform by itself (without the main form) and adjust the columns the way you want them.  Then save that form.  Then open the main form and the subform should have the column widths set the way you want them.  But your users may want them set differently.

You might also want to take a look at my article on customizing datasheets
0
 

Author Closing Comment

by:dsoderstrom
ID: 40218158
I have tried changing the widths on the subform itself and saving it but when I open the main form the columns still revert back to what they were before I changed them.  
The frustrating thing is sometimes the column width settings are saved and sometimes they are not. When I can not get them to save I have reverted to setting the column width in Twips  in the On Open Event of the subform  (ex. Me.Customer_ID.ColumnWidth = 1260)
Your procedure for saving the column widths and restoring them looks interesting.  I will give it a try.
Thanks for the help
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 40218196
Although the article was written with the concept of allowing users to customize their settings, you could create a default configuration, and load those values every time.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Suggested Solutions

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now