G
Guest
Hi,
We have a snapshop of data coming from SQL Server 2000 (linked tables) which
is shown as continuous records in a subform in Access 2003.
When a user views a record we update a tick box on that subform (via a
stored procedure becuase as it is a snapshot view) to show that it has been
viewed.
There are three ways that we know of making the tick visible after it has
been updated in the backend:
1. Use the Me.Requery method which works but causes the user to lose their
place on the screen. Yes we can set the focus back to the record they
clicked by using a bookmark but it gets messy when the record they clicked
was in the middle of the screen and after we requery and setfocus the record
moves to the top of the screen (they get confused!).
2. Change the Snapshot view to a Dynamic view and update the tickbox
directly via code and not via a stored procedure. Again, this works but makes
the whole loading process very slow and when scrolling through more than 40
or so records the screen is very slow to update.
3. Press F9. This button does exactly what we want, it requeries the data
without moving the focus or moving the position of the scroll bars. We have
tried to reprodude this with code by using various methods but we cannot seem
to figure it out!
We thought that this button was a shortcut to the menu item "Records",
"Refresh" but when using the menu option and not F9 it does not do the same.
The record is not requeried.
So the real question is, what exactly does F9 do and how can I reproduce it
in code?
Thanks
Mark Donne
We have a snapshop of data coming from SQL Server 2000 (linked tables) which
is shown as continuous records in a subform in Access 2003.
When a user views a record we update a tick box on that subform (via a
stored procedure becuase as it is a snapshot view) to show that it has been
viewed.
There are three ways that we know of making the tick visible after it has
been updated in the backend:
1. Use the Me.Requery method which works but causes the user to lose their
place on the screen. Yes we can set the focus back to the record they
clicked by using a bookmark but it gets messy when the record they clicked
was in the middle of the screen and after we requery and setfocus the record
moves to the top of the screen (they get confused!).
2. Change the Snapshot view to a Dynamic view and update the tickbox
directly via code and not via a stored procedure. Again, this works but makes
the whole loading process very slow and when scrolling through more than 40
or so records the screen is very slow to update.
3. Press F9. This button does exactly what we want, it requeries the data
without moving the focus or moving the position of the scroll bars. We have
tried to reprodude this with code by using various methods but we cannot seem
to figure it out!
We thought that this button was a shortcut to the menu item "Records",
"Refresh" but when using the menu option and not F9 it does not do the same.
The record is not requeried.
So the real question is, what exactly does F9 do and how can I reproduce it
in code?
Thanks
Mark Donne