Solved

Trouble setting column widths on subforms.

Posted on 2014-07-24
3
454 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 48

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 48

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

695 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