scroll bars

E

Emidio

Hi all, Is there a way usinf VB to simulate using the
mouse pointer to scroll windows up and down? I have a
large subform on a tab control form which scrolls off the
top of the screen and the only way I can go back is
manually moving the scroll bar with the mouse. I've
tried "docmd.gotopage x" but it doesn't work.

Thanks
 
B

Bruce M. Thompson

Hi all, Is there a way usinf VB to simulate using the
mouse pointer to scroll windows up and down? I have a
large subform on a tab control form which scrolls off the
top of the screen and the only way I can go back is
manually moving the scroll bar with the mouse. I've
tried "docmd.gotopage x" but it doesn't work.

If I understand you correctly, it would appear that a control on the subform
that is first in the tabbing order (lowest on the totem pole in the Tab Index
and, this first to get the focus) is at the bottom of that subform. Make sure
that a control near the top of the subform is the first to get the focus by
setting its Tab Index property to 0 (zero).

If this is not the case, I think you might find a solution at Stephen Lebans'
website - particularly, take a look at http://www.lebans.com/SelectRow.htm.
 

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

Similar Threads


Top