REQUERY WITHOUT SCROLL SCREEN.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form with a subform that have a timer to requery each 10 seconds.
The problem is every time that do the requery, the screen go to the first
record and this is a very important problem with the operator. Anyone know
how I have to do for requery within scrolling screen?

Thanks.
 
I have a form with a subform that have a timer to requery each 10 seconds.
The problem is every time that do the requery, the screen go to the first
record and this is a very important problem with the operator. Anyone know
how I have to do for requery within scrolling screen?

Thanks.

create a global variable
== Option Compare database
== dim RecHolder as string
store the current record in that variable using the record pointer or
some other unique field inside your record
== private sub control_click()
== RecHolder = [recordID]
== me.requery
after the requery you can use something like this
== Set rs = Me.Recordset.Clone
== rs.FindFirst "[recordID] = " & RecHolder
== If Not rs.EOF Then Me.Bookmark = rs.Bookmark
== end sub

grtz
 
Hi

Something like this?
......
Dim rs As Recordset
Set rs = Me.RecordsetClone
Me.Requery
Me.Bookmark = rs.Bookmark
......
 
The options that you say don't run right. Do you know another solutions? I
want to get the last records in the suform like a "REQUERY", but the
scrollbar don´t go to the first record. This action ACCESS, because in Visual
Basic is going on.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top