troubleshooting Question

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

Avatar of Dale Fye
Dale FyeFlag for United States of America asked on
Microsoft Access
13 Comments1 Solution66 ViewsLast Modified:
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.


Join our community to see this answer!
Unlock 1 Answer and 13 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros