Solved

Auto Resize SUB form field widths

Posted on 2001-08-09
7
317 Views
Last Modified: 2012-06-21
I want to auto resize the field width on a sub form when it displays data.

Essentially, I want to do programmatically what I can do at run-time when I double-click on a resize bar and the field width adjusts.  

Thanks.
0
Comment
Question by:knowlton
  • 3
  • 3
7 Comments
 
LVL 8

Expert Comment

by:dovholuk
ID: 6369858
sorry, don't think it's possible...

dovholuk
0
 
LVL 5

Author Comment

by:knowlton
ID: 6369878
You don't think it's possible...because... ???
0
 
LVL 8

Expert Comment

by:dovholuk
ID: 6369907
it's a question that's been around for a while. i've never seen it answered.

i agree that it seems like it SHOULD be doable, i've just never seen anyone here (or elsewhere) make it happen...

sorry.

dovholuk
0
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
LVL 5

Author Comment

by:knowlton
ID: 6369928
dovholuk:

No sweat.

I didn't think I could be the first person to ask this...it seems like a very reasonable thing to want to do....

Thanks anyway.
0
 
LVL 8

Expert Comment

by:dovholuk
ID: 6369987
yep... keep the question alive for a bit to see if any experts can give you "the magic bullet"... then delete it to reclaim your points if it can't be done...

dovholuk
0
 
LVL 5

Author Comment

by:knowlton
ID: 6370011
I will, thanks.
0
 
LVL 30

Accepted Solution

by:
hnasr earned 20 total points
ID: 6370308
I understand the question as this: If you have 10 characters in a field you want it's width to be just enough to accomodate the 10 characters. You want the width to be bigger if it contains more characters.

One attempt, is to use fixed width font and find how many characters per inch or whatever units you like.  In the on format event, find the length of the field contents and set the width accordingly.

I guess one can adjust the position of other fields relative to that field.

One keeps learning!
Good luck.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
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…

810 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