Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > RowHeight
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 30151 of 31576
Post > Topic >>

RowHeight

by "Fred Zuckerman" <ZuckermanF@[EMAIL PROTECTED] > May 2, 2008 at 08:30 AM

I'm trying to size a subform control to display all of the records (thus 
eliminating the vertical scroll bar). I know that the CanGrow property is 
only for printing.

My thought was to determine the number of records in the subform and the 
current setting of RowHeight and use that to determine how to size the 
subform control.

My problem seems to involve the RowHeight property. When I try to
determine 
it's current value the property returns a value of True (-1) instead of
the 
twips. What am I doing wrong?


   Dim Mreccount As Double
   Dim Msubfrmheight As Double
   Dim Mrowheight As Double

   Mreccount = Me.Child5.Form.RecordsetClone.RecordCount
   Mrowheight = Me.Child5.Form.RowHeight ''' <--this returns true, why?
   Msubfrmheight = (Mreccount + 2) * Mrowheight
   Me.Child5.Height = Msubfrmheight

Thanks To All,
Fred Zuckerman
 




 4 Posts in Topic:
RowHeight
"Fred Zuckerman"  2008-05-02 08:30:31 
Re: RowHeight
Bruce <deluxeinformati  2008-05-02 08:59:48 
Re: RowHeight
"Rick Brandt" &  2008-05-02 23:19:28 
Re: RowHeight
"Fred Zuckerman"  2008-05-02 23:41:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 1:29:44 CST 2008.