I hava a list of my orders (subform datasheet based on a query), this list is updating every 30 seconds (status need to be updated). The problem was position cursor after requery, but I found the code:
It works great, but only If I don't use vertical scrollbar. If I select some record which is e.g. at the bottom line, then after requery cursor jump to top and again back to my position, this operation changing the view, so this is annoying for user.
Is there some way to fix it (I mean without jumping scrollbar, maybe some way to update query every 30 seconds not subform)?
Code:
Dim strBookmark As String
strBookmark = Me![frmAktPD].Form.Recordset.Bookmark
Me![frmAktPD].Form.Requery
Me![frmAktPD].Form.Recordset.Bookmark = strBookmark
Is there some way to fix it (I mean without jumping scrollbar, maybe some way to update query every 30 seconds not subform)?
Last edited: