Solved

Auto Resize SUB form field widths

Posted on 2001-08-09
7
321 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:Tom Knowlton
[X]
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
  • 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:Tom 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 5

Author Comment

by:Tom 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:Tom 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MS ACCESS VBA FORMATTING 9 65
MS Access query 16 63
Sharepoint list value updated via access or Excel 3 35
Outlook mail to Access 8 31
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

710 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