Change control height

C

ct

I want to expand the height to 1" on a list box when the
user tabs into the field(OnEnter,OnGotFocus?) and then
contract back to .2" when they leave the field. Is that
possible and can someone explain how to a VBA novice.
Thanks.
 
F

fredg

I want to expand the height to 1" on a list box when the
user tabs into the field(OnEnter,OnGotFocus?) and then
contract back to .2" when they leave the field. Is that
possible and can someone explain how to a VBA novice.
Thanks.

Access measurments are in Twips... 1440 per inch.

Code the List Box Enter event:
Me!ListBoxName.Height = 1440

Code the List Box Exit event:
Me!ListBoxName.Height = 0.2 * 1440
 
C

ct

Perfect. Thanks.
-----Original Message-----


Access measurments are in Twips... 1440 per inch.

Code the List Box Enter event:
Me!ListBoxName.Height = 1440

Code the List Box Exit event:
Me!ListBoxName.Height = 0.2 * 1440
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
.
 

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