Marshall Brooks
Member
- Local time
- Today, 07:04
- Joined
- Feb 28, 2023
- Messages
- 725
I think I probably have this as good as I can get it, but I wanted to ask here first since it isn't working as I expected.
I have a simple subform with two columns and several thousand records.
I want the subform to have a vertical scrollbar and no horizontal scrollbar.
I looked at these threads:
The subform originally was 5.25-inches wide and had horizontal and vertical scrollbars.
If I made the form 5.51 inches wide (the width of the form plus the width of the vertical scrollbars, it worked, but it was somewhat quirky... There are 13 records visible. If I clicked in Record 13 and pressed the down arrow, the vertical scrollbar appeared, but otherwise, it was not shown.
I tried ArnelGP's suggestion and if I set Me.Scrollbars = 0 in the subform's Form_Current event, when I click in the subform to make it current, the vertical scrollbar appears and the mouse scroll wheel works. Almost what I want, except the scrollbar doesn't appear until I click in the subform.
Adding Me.Scrollbars = 0 to the subform Form_Load or subform Form_Open event didn't do anything.
Also - Scrollbars = 0 is SUPPOSED to hide both scrollbars. Scrollbars = 1 (Horizontal) made a horizontal scrollbar appear when I clicked in the subform, but then it vanished if I tried to select it. Scrollbars = 2 vertical made the vertical scrollbar fade in and out. And Scrollbars = 3 made both of them fade in and out.
At this point, all I'm trying to do is have the vertical scrollbar visible in the subform BEFORE I actually click in the subform.
Thanks in advance!
Me.Scrollbars = 2
I have a simple subform with two columns and several thousand records.
I want the subform to have a vertical scrollbar and no horizontal scrollbar.
I looked at these threads:
Solved - Why do scroll bars appear for no reason?
I'm sure you have seen this before, but this is driving me crazy. In a subform, I have just two records that are fully visible on the screen and a scrollbar appears on the right of the form! There is absolutely no reason to have a scroll bar appear until the form fills up with more records then...
www.access-programmers.co.uk
Sub form scroll bars
I want the data entry to be at the top of my sub-form so I have used the method of using two sub-forms one with no data input allowed and just above that one the sets focus on new record entry after update and only shows one record. It works fine but for the life of me I cant get rid of the...
www.access-programmers.co.uk
The subform originally was 5.25-inches wide and had horizontal and vertical scrollbars.
If I made the form 5.51 inches wide (the width of the form plus the width of the vertical scrollbars, it worked, but it was somewhat quirky... There are 13 records visible. If I clicked in Record 13 and pressed the down arrow, the vertical scrollbar appeared, but otherwise, it was not shown.
I tried ArnelGP's suggestion and if I set Me.Scrollbars = 0 in the subform's Form_Current event, when I click in the subform to make it current, the vertical scrollbar appears and the mouse scroll wheel works. Almost what I want, except the scrollbar doesn't appear until I click in the subform.
Adding Me.Scrollbars = 0 to the subform Form_Load or subform Form_Open event didn't do anything.
Also - Scrollbars = 0 is SUPPOSED to hide both scrollbars. Scrollbars = 1 (Horizontal) made a horizontal scrollbar appear when I clicked in the subform, but then it vanished if I tried to select it. Scrollbars = 2 vertical made the vertical scrollbar fade in and out. And Scrollbars = 3 made both of them fade in and out.
At this point, all I'm trying to do is have the vertical scrollbar visible in the subform BEFORE I actually click in the subform.
Thanks in advance!
Me.Scrollbars = 2