Auto Resize SUB form field widths

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.
LVL 5
Tom KnowltonWeb developerAsked:
Who is Participating?
 
hnasrCommented:
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
 
dovholukCommented:
sorry, don't think it's possible...

dovholuk
0
 
Tom KnowltonWeb developerAuthor Commented:
You don't think it's possible...because... ???
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
dovholukCommented:
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
 
Tom KnowltonWeb developerAuthor Commented:
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
 
dovholukCommented:
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
 
Tom KnowltonWeb developerAuthor Commented:
I will, thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.