Question : ADP only please (Access Project) CONTINUOUS FORM REFRESH

I have a continous form (DISPATCHBROWSER2000).  I double-click a particular record, and the (WAYBILL) form opens to the appropriate record.  All fine there.

Then In the WAYBILL form I have a Command Close Button with the following code:

DoCmd.Close
FORMS!DISPATCHBROWSER2000.Refresh

All fine and good...the DISPATCHBROWSER2000 form refreshes showing all the changes that were made on the WAYBILL form.

What I don't like is that the form refreshes itself (back to the top) and I have to scroll back down again to see the changes on the record I was just editing.  



Is there any way to refresh the DISPATCHBROWSER2000 form without that happening.  I would like to exit the WAYBILL form and have the DISPATCHBROWSER2000 refresh, but put me in the same spot I was working on.  

I would like these changes to be seen dynamically updated every few seconds without having to refresh the form.

Answer : ADP only please (Access Project) CONTINUOUS FORM REFRESH

I agree that it's befuddling to want to refresh and stay on the same record BOTH.  Here's another possibility...

After you refresh the form, you can go to a bookmark like this:
--------------
Me.Requery        
Dim RS as Recordset  '(this might have to be a DAO recordset in order to have the FindFirst??? Not sure).
Set RS = Me.RecordsetClone
RS.FindFirst "[Product ID]=" & ProdID
Me.Bookmark = RS.Bookmark
---------------

The question is how you find the record that you want.  Some people save the value in a global variable but I usually eschew that.  Depending on how your form is set up you might find another way to save or pass the value.

Hope this starts a spark...

Random Solutions  
 
programming4us programming4us