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

subform column widths will not hold size after saving

Posted on 2016-09-21
4
40 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 19
ID: 41809223
is it a datasheet?
0
 
LVL 3

Author Comment

by:fordraiders
ID: 41809243
yes.,...
0
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
ID: 41809256
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
ID: 41809629
Dale, Thanks Yes, I found this.!! worked.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
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…

792 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