A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Need to detect scrollbar in subform



 
 
Thread Tools Display Modes
  #1  
Old August 3rd, 2006, 10:35 AM posted to microsoft.public.access.forms
deBassMan
external usenet poster
 
Posts: 1
Default Need to detect scrollbar in subform

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

  #2  
Old August 4th, 2006, 04:08 PM posted to microsoft.public.access.forms
Stephen Lebans
external usenet poster
 
Posts: 619
Default Need to detect scrollbar in subform

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.


"deBassMan" u24848@uwe wrote in message news:6435a67fe2807@uwe...
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



  #3  
Old August 5th, 2006, 09:13 AM posted to microsoft.public.access.forms
deBassMan via AccessMonster.com
external usenet poster
 
Posts: 2
Default Need to detect scrollbar in subform

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 Lebans wrote:
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]

cheers


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200608/1

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:56 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.