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
Solved

Trouble setting column widths on subforms.

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
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…
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 …
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 …

856 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