Advertisement

07.09.2007 at 03:07PM PDT, ID: 22684601
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.4

Monitor completion of Requery on ADP Form

Asked by jaanth in Microsoft Access Database, Microsoft ADP

Tags: , , ,

Hello Experts,

I have a form in a Access 2003 ADP connecting to Sql backend. It opens a separate dialog to update values in the underlying recordset. Upon returning from the dialog, I do a requery of the form and then reposition the form back to the original record, using the following code:

    'requery to get the update back on the main form
    Me.Requery
   
    Set rsadd = Me.RecordsetClone
    rsadd.Find "ParcelID = " & Str(EditRecordId)
    If Not rsadd.EOF Then
        Me.Bookmark = rsadd.Bookmark
    End If
    Set rsadd = Nothing
 
The problem is that the repositioning tries to occur while the requery is still asynchronously executing, so the reposition does not happen.

I have searched for a property or event to monitor, to discover when the requery is complete, but  I have not been able to find one. I have tried the connection object still executing, but the values appears not to change.

I have built this kludgey work around,

  ' workaround I would like to get rid of
        x = 999999
        Do While Me.Recordset.RecordCount <> x
             x = Me.Recordset.RecordCount
             wait = Timer + 1
             Do While Timer < wait
              DoEvents
             Loop
        Loop

but I would like to get rid of it. On the form, I can visually see the navigation bar change (the red X disappears) when the requery is complete, but I have not been able to find a way to detect that.

Is there a property or event to monitor, to test for the completion of the requery?
Is there a application level property that will force the requery to be synchronus?

Thanks.







 
Start Free Trial
[+][-]07.09.2007 at 03:17PM PDT, ID: 19449302

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.09.2007 at 03:19PM PDT, ID: 19449308

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.09.2007 at 03:22PM PDT, ID: 19449325

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.09.2007 at 03:38PM PDT, ID: 19449374

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.11.2007 at 02:37PM PDT, ID: 19466998

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.11.2007 at 10:55PM PDT, ID: 19469144

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Access Database, Microsoft ADP
Tags: access, adp, form, requery
Sign Up Now!
Solution Provided By: nmcdermaid
Participating Experts: 4
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32