Bill said:
Dirk,
Just "grasping for straws" here, but I was curious as to just how
consistently the RSH (Record-Selectors Highlighting) occur. I have
two continuous forms that are very similar and both have a double-
click event to "bring up" the detail behind the records being
displayed.
On both of those forms, there are 20 records displayed. I went through
each of the records in succession twice in each of the two forms. On
each of those four passes, I get the RSH phenomenon in the exact
same positions: "4,5,6,7,,9,,,,13,14,,,,,,,".
You mean, all three continuous forms display the same behavior? And the
behavior seems to be positional, so that it happens for records that are
fourth, fifth, sixth, and seventh, and ninth on the form, but not for
eighth or tenth? How very bizarre!
If you double-click to open the detail form, does the original form's
selection get changed (a) before the detail form appears, (b) after the
detail form appears but before it's closed, or (c) only after the detail
form is closed? In the Open event and the Close event of the detail
form, put the lines of code like the following:
' *** FOR DEBUGGING ***
With Forms!YourListFormName '*** Change to your form's name
Debug.Print .Name, "OPEN", .SelTop, .SelHeight
'*** Use "CLOSE" instead of "OPEN" for Close event
End With
Substitute the name of your list form for "YourListFormName" in the
above, and use "CLOSE" instead of "OPEN" for the form's Close event.
What appears in the Immediate Window when you double-click the original
form to open the detail form, then close it again, may give us a clue.
And then, after the details form is closed, open the Immediate Window
and (after noting what it says), enter the statement:
Debug.Print Screen.ActiveForm.SelTop, Screen.ActiveForm.SelHeight
That may help us see when in the course of events it happens, and also
demonstrate whether the properties are really being changed or if it's
just a display phenomenon.
I don't think the numbers mean anything, but I was hoping to get some
clue from the consistent behavior.
That makes sense. I still can't reproduce this here. Do those three
forms have anything else in common? Do they call common, user-written
functions?
Hummmm! I just tried an experiment wherein I reset my 19" monitor to
a screen resolution of 800 x 600, which is the resolution I use when I
develope forms for general use. At that resolution, I don't get RSH
occurring at all. Later this evening, if I can make the time, I'll
re-design the form while my settings are at 1024 x 678 and see if
that clears up
the problem. I'll post back again after I've done that.
If the screen resolution affects the behavior, that suggests the
possibility of a display driver bug, but I don't quite see how the
display driver could affect the SelHeight and SelTop properties.
Did you mention what versions of Access and of Windows are involved? Do
you and the client who reported this have similar configurations?