473,668 Members | 2,661 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Detect when subform displays a vertical scrollbar??

hi all

Access 2K/2003, Win XP Pro

I need to be able to detect when a subform datasheet is currently
displaying a vertical scrollbar.

I.e if the subform datasheet is showing more records than can fit the
subform window Access will make the vertical scrollbar visible.

I can't simply do a record count and figure out if that is too many to
fit - because the users can use their mouse to drag the rowheight
taller or shorter.

I think an API call is required - but I cannot get this to work.

I'd appreciate any ideas on this one

cheers

Aug 6 '06 #1
1 2340
sc*******@hotma il.com wrote:
hi all

Access 2K/2003, Win XP Pro

I need to be able to detect when a subform datasheet is currently
displaying a vertical scrollbar.

I.e if the subform datasheet is showing more records than can fit the
subform window Access will make the vertical scrollbar visible.

I can't simply do a record count and figure out if that is too many to
fit - because the users can use their mouse to drag the rowheight
taller or shorter.

I think an API call is required - but I cannot get this to work.

I'd appreciate any ideas on this one

cheers
Could you get the height of the detail band row?

I created a datasheet form. In the OnCurrent event I entered
msgbox Me.RowHeight

When first loaded, I got -1. If I changed the height, then I got other
numbers that you can calc on. With some experimentation , you should be
able to figure out the code you need with RowHeight.
Aug 6 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
62431
by: Nathan Wallace | last post by:
When in quirks mode, IE seems to be able to display pages without any vertical scrollbar: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <style> body { overflow: hidden; }
4
13551
by: Rob T. | last post by:
I am using a div tag to make an element that contains some text. I have specified overflow: auto; in my stylesheet. If I use font-size/line-height to specify the font information I get a vertical scrollbar in firefox/netscape (not IE) , even though the text I have in the element does not exceed the bounds. The simple example below casues this behaviour. How do I fix this? <div style="overflow:auto; height:100px; width:100px;...
3
17300
by: andrew.neale | last post by:
Hello, I have a div that has an overflow set to auto. I would like to know if the scrollbars are visible in javascript. Any help is appreciated. Thanks
4
16435
by: Paul T. RONG | last post by:
Dear all, Can one control the subform scrollbar through vba? For example, I would like to make two command buttons on the main form to control the subform scrollbar. Click 1st button the subform vertical scrollbar goes down to the end, click 2nd button goes up to the top position. Thank you for your help,
2
2344
by: Tom van Stiphout | last post by:
Hi All, This one has me stumped. I hope someone else has seen this behavior and knows what's going on. I'm using Access 2003 ADP on Windows XP, database in 2002/2003 format, with SQL Server 2000. Everything patched to latest version. This happens both at work and at home. My form is very similar in structure to the NorthwindCS Orders form: a parent form with a subform in datasheet. The subform draws its data from a view. The...
0
2372
by: Gene Hubert | last post by:
I've got two treeviews side by side on a panel on a form. They each have about 20 nodes in them. The treeview on the right has a vertical scrollbar. The treeview on the left needs a vertical scrollbar but does not have one. I have tried TreeView.Scrollable = True and calling ExpandAll() before the tree view is displayed with no success. I have checked the value of .Scrollable at runtime and it is true. If I select a node in the...
2
6637
by: deBassMan | last post by:
Hi all Using MS Access 2000, Win XP I require a quick and dirty (or all-singing and dancing) way of detecting whether a vertical scrollbar is visible on a sub-form. apologies if posted in wrong forum - didn't see a VBA section thanks
1
2902
by: deBassMan | last post by:
Hi all Using MS Access 2000, Win XP I require a quick and dirty (or all-singing and dancing) way of detecting whether a vertical scrollbar is visible on a sub-form. apologies if posted in wrong forum - didn't see a VBA section thanks
1
6236
by: =?Utf-8?B?SmVzcGVyLCBEZW5tYXJr?= | last post by:
Hi, Is there a way to detect whenever scrollbars (the vertical) are shown on a treeview I need to know. 1) If scrollbars are visible after a rezise 2) If scrollbars are visible after change in content (e.g. nodes collapsed/expanded, nodes added/deleted ). Any event to hook into?
0
8462
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8381
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8893
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8656
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6209
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5681
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4205
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4380
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2791
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.