row height in a subform

J

jean

Hi

I am able to change rows height of a continuous form containing 3
fields with a button containing the following code

[Field1].height = 480
[Field2].height = 480
[Field3].height = 480

This way the user can see more text. When finish, user click on
another button containing this code

[Field1].height = 240
[Field2].height = 240
[Field3].height = 240
[Detail].height = 240

Buttons are situated in the form header

Now I have a Main form “employee” (single) containing a continuous
subform “employeeSub”

I want to be able to change rows height of te subform with a button
situated on the main form

I have try many codes without success

Can someone help me

thanks
 
F

frank

Hi

I am able to change rows height of a continuous form containing 3
fields with a button containing the following code

[Field1].height = 480
[Field2].height = 480
[Field3].height = 480

This way the user can see more text.  When finish, user click on
another button containing this code

[Field1].height = 240
[Field2].height = 240
[Field3].height = 240
[Detail].height = 240

Buttons are situated in the form header

Now I have a Main form “employee” (single) containing a continuous
subform “employeeSub”

I want to be able to change rows height of te subform  with a button
situated on the main form

I have try many codes without success

Can someone help me

thanks
Hello,

This should work:
Form_employeeSub.textbox1.height = 480

I always name the controls something other than the field name to
avoid confusion.
Then when I want to set the control properties I can refer to the
control itself, instead of a field name which could also have other
meanings.
IF these are textbox controls you can name them txtField1, txtField2,
txtField3 and txtDetails.

Form_employeeSub.txtField1.height = 240
Form_employeeSub.txtField2.height = 240
Form_employeeSub.txtField3.height = 240
Form_employeeSub.txtDetails.height = 240
 

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