Need to detect scrollbar in subform

D

deBassMan

Hi all
I need to be able to detect if a subform is currently displaying a vertical
scrollbar.

I think a call to the API is the way to go - but as yet I cannot get this to
work

any ideas would be gratefully received

cheers
 
S

Stephen Lebans

An easier method is to count the number of records required to force the
ScrollBar to be visible. Then just check the RecordCount of the bound
recordset to determine if the SB is visible or not.

--

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

deBassMan via AccessMonster.com

Hi Stephen
thanks for your msg.

the recordcount idea is a non-starter, I'm afraid, as the users can (and do)
adjust the rowheight of each record.

Is there not an API call which will determine if the window is displaying a
vertical scrollbar?

thanks for your interest


Stephen said:
An easier method is to count the number of records required to force the
ScrollBar to be visible. Then just check the RecordCount of the bound
recordset to determine if the SB is visible or not.
Hi all
I need to be able to detect if a subform is currently displaying a
[quoted text clipped - 8 lines]
 

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