Solved

Trouble setting column widths on subforms.

Posted on 2014-07-24
3
450 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

749 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