Subject: page footer
Posted By: damnnono_86 Post Date: 10/21/2003 11:23:58 PM
hi

i have a form where i have place the main data on the "Detail" portion. i wish to have a command button on my detail page and when i click on it, the action is to open the page footer where it consists some data which means that the data will only display when the button is clicked.

i have try by making the data visible = false first and in the event of on click event of the command button, i wrote :
me.lblData.visible = true,
however it does not work.

how can i do that??

pls advice
nono

Reply By: sal Reply Date: 10/22/2003 9:08:13 AM
try on form load
Me.FormFooter.Visible = False

and on button click
Me.FormFooter.Visible = true

Is this what you are looking for?

Sal
Reply By: damnnono_86 Reply Date: 10/22/2003 8:19:30 PM
hi sal,

this is exactly what i wanted. can i ask u one more question?
how can i adjust the form footer. becoz if i have a large amount of data on the form footer then my form size will appear a large blank space on the bottom unless the user click on the command button.

so what i want is that can the form resize itself, which means that when the form load, it will appear in the size where the form footer is hidden (no blank space shown). only after the user click on the command button the form will then resize to the approiate size.

i hope this dont confuse you.

pls advice
nono


Reply By: SerranoG Reply Date: 10/23/2003 6:51:24 AM
How about if you put this statement after you make the form footer and label visible?
   Me.FormFooter.Height = Me.lblData.Height



Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
Reply By: damnnono_86 Reply Date: 10/24/2003 10:04:23 PM
hi Greg Serrano,

i have try the method u told me. it wont solve the redundant space. there will be a blank space at the footer when my form loads.

any ideas?

pls advice
nono

Reply By: sal Reply Date: 10/25/2003 5:10:11 PM
Try setting the
CanShrink property to yes and the
CanGrow to yes

Sal
Reply By: damnnono_86 Reply Date: 10/26/2003 10:12:03 PM
hi sal,

the previous method u taught me was correct after many tries.... but in the first place i have to change the properties of the form footer in order for the visbility to work. glad that u have help me.

thanks a million!
nono

Reply By: sal Reply Date: 10/26/2003 11:27:38 PM
So, I guess it is working now?

:)


Sal
Reply By: damnnono_86 Reply Date: 10/27/2003 8:16:06 PM
yes of course it works!

thanks again
nono


Go to topic 1025

Return to index page 1018
Return to index page 1017
Return to index page 1016
Return to index page 1015
Return to index page 1014
Return to index page 1013
Return to index page 1012
Return to index page 1011
Return to index page 1010
Return to index page 1009