Solved

Trouble setting column widths on subforms.

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

914 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

13 Experts available now in Live!

Get 1:1 Help Now