We help IT Professionals succeed at work.
Get Started

Determine which record is displayed at top of continuous form when user uses the scroll bar to scroll down

Dale Fye
Dale Fye asked
Last Modified: 2020-01-16
I'm trying to determine the PK of the record displayed at the top of a continuous subform.

I have a subform which contains times from 07:30 - 17:00 in 15 minute intervals.  Unfortunately, I can only display about 20 of these records at one time, so I have the vertical scrollbar enabled.  If the user scrolls down, using the vertical scroll bar, I want to be able to determine what time interval is locate at the top of the visible section of the subform.

I know that if the user scrolls down and then selects the top most record, I can use the SelTop property of the form, but this value does not change unless the user actually selects the record at the top of the form.  Any ideas:
1.  What event to use to check whether the user has scrolled down
2.  how to determine the time associated with the record displayed at the top of the form.


Watch Question
President / Owner
Most Valuable Expert 2017
This problem has been solved!
Unlock 1 Answer and 13 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE