[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More
Experts Exchange Solution brought to you by
"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.
The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.
Dim sngOrigButtonTop as single
Dim sngOrigSubFormTop as single
Dim sngOrigSubformHeight as single
'Replace the 3.5, 3.8, and 3.0 in the next three lines with the original values for the controls on the form, before you make changes
sngOrigButtonTop = 3.5 * 1440
sngOrigSubformTop = 3.8 * 1440
sngOrigSubformHeight = 3.0 *1440
on error goto ProcError
if me.cmd_Resize.Caption = "Increase" then
'Replace the 1.0 and 1.3 in the following code with the positions where you want the top of the button
'and the top of the subform when they are expanded.
me.cmd_Resize.Caption = "Decrease"
me.cmd_Resize.Top = 1 * 1440 '(1" = 1440 twips)
me.subformControlName.Top = 1.3 * 1440
me.subformControlName.Height = sngOrigSubformTop - (1.3 * 1440) + sngOrigSubformHeight
me.cmd_Resize.Caption = "Increase"
me.subformControlName.Height = sngOrigSubformHeight
me.subformControlname.Top = sngOrigSubformTop
me.cmd_Resize.Top = sngButtonTop
debug.print "cmd_Resize_Click", err.number, err.description
msgbox err.number & err.description, , "cmd_Resize_Click
Open in new window
Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.