row height (different for each row)

M

Mark Andrews

I am collecting data, example:

record1: "this is a short sentence"
record2: "this is a longer sentence that will need to wrap when
displayed..."
record3: "another short sentence"

I would like to display them on a continous form with the text field above
and a few buttons (on each row)

However I would like each row to grow to the appropriate size to display the
text.
So the user would see three rows and the middle one would have a larger row
height than the other two.
The buttons on the form would allow the user to open the record, and do
other operations
Note: I'm trying to simplify what is needed a bit.

I'm having a brain fart today, and can't figure out a good way to display
records that have various sizes (and I want the entire text to be shown).

Access2007, can't use any third party controls.

I tried the CanGrow property.

Any help is appreciated,
Mark
 
M

Mark Andrews

Only way I can see to do it is to:
use code to resize the text box control to fit the largest text (then all
rows get larger height because tha's how subforms work) Stephen Leban has
some code.

or perhaps use form_current and resizing logic so when user moves to each
record it would resize (which doesn't work for me because this is meant to
display text only and user will only be clicking on buttons which open other
forms).

So I'm really looking for ways to display up to 10 records in a nice way and
have buttons to edit each line.
Maybe lots of text boxes and buttons that I hide/show and resize?

Any thoughts are appreciated,
Mark

PS: What I am building is a way for users to build queries (and thsi would
be the display of the multiple criteria) Example: 2 criteria lines (user
can edit each one, just looking for a good way to display them to show the
user)

Show Contacts Whose: Type = 'Red' or 'Blue' or 'Green'
and whose: Status = 'Active' or 'Pending'
 
F

Frank H

You mentioned you have tried can grow.
But have you turned on can grow for both the text box, AND the detail section?
 
M

Mark Andrews

Yes I turned it on for both the text box and detail section. Maybe that
just works for printing?

I know I use it on reports all the time but not really on forms.

Any other suggestions?
Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top