Solved

subform column widths will not hold size after saving

Posted on 2016-09-21
4
24 Views
Last Modified: 2016-09-21
access 2010

Never had this issue before.

Subform column widths will not hold have going into subform  and changing there...

Subform column widths will not hold have going into Main form  and changing there


Thanks
fordraiders
0
Comment
Question by:fordraiders
  • 2
4 Comments
 
LVL 18
Comment Utility
is it a datasheet?
0
 
LVL 3

Author Comment

by:fordraiders
Comment Utility
yes.,...
0
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
Comment Utility
FordRaiders,

See my article here for some ideas

Short answer is recent versions of Access have dorked this up.  When I want columns placed in a certain order and a certain width, I create a procedure to do it and call that procedure from the Form_Load event.

Private Sub ColumnWidths

    me.controls("txt_Field1").columnwidth = 1 * 1440
    me.controls("txt_Field2").columnwidth = .75 * 1440
    me.controls("txt_Field3").columnwidth = 1.25 * 1440

End Sub

Note that I've referenced the control name, not the field name.
0
 
LVL 3

Author Closing Comment

by:fordraiders
Comment Utility
Dale, Thanks Yes, I found this.!! worked.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
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 …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 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

11 Experts available now in Live!

Get 1:1 Help Now