How to capture SelHeight when pressing a button?

B

Bertrand

Hi,

I would like to read the SelHeight from a subform in the OnClick handler of
a button. But when the button is pressed the selection is reset and SelHeight
is always 0. Is there a workaround?

Best regards,
Bertrand
 
S

Stephen Lebans

Create module level variables for the form's SelTop and SelHeight props
that you update using the Form's Click event.
Finally the Access Web contains sample code based on a Timer event that
you can use by simply substituting the method outlined above.
http://www.mvps.org/access/forms/frm0033.htm



--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

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