Solved

Auto Resize SUB form field widths

Posted on 2001-08-09
7
315 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
Comment Utility
sorry, don't think it's possible...

dovholuk
0
 
LVL 5

Author Comment

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

Expert Comment

by:dovholuk
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 5

Author Comment

by:knowlton
Comment Utility
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
Comment Utility
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
Comment Utility
I will, thanks.
0
 
LVL 30

Accepted Solution

by:
hnasr earned 20 total points
Comment Utility
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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
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…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

762 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

10 Experts available now in Live!

Get 1:1 Help Now