Solved

difference between MoveComplete and RecordChangeComplete in the ADODC control

Posted on 2003-12-10
2
497 Views
Last Modified: 2013-12-26

I have a DB app that has lots of textboxes tied to fields of a database, and three ADODC controls as the datasource. When the first ADODC1 control moves to the appropriate record, I use the MoveComplete event to navigate the second two ADODC controls to the correct record.

1) What is the difference between MoveComplete and RecordChangeComplete  of the ADODC control?

2) I am using MoveComplete, is this the best event to use if I want to perform actions after the recordset has moved?

3) I am using this line of code to populate the caption of the ADODC1 control with the current record and recordcount. Yet, I've noticed that this line causes the ADODB.movecomplete to be called, so the procedure sometimes calls itself.
    Adodc1.Caption = " " & pRecordset.AbsolutePosition & " of " & pRecordset.RecordCount

4) Is there a way to cycle through the recordset of an ADODC control without having to wait for each textbox to be populated for each move? I just want a value from each record in the recordset, then after I've goten my array of values, I want to reenable the ADODC recordset.

0
Comment
Question by:josephfluckiger
2 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 500 total points
ID: 9918565
1) MoveComplete event: occurs each time a new record becomes current
   RecordChangeComplete: used to check the data before you move to the next record
2) Yes, that's the best event
3) Normally it shouldn't call himself because you only get the id's
4) Don't think so because you use a bound control array
0
 
LVL 1

Author Comment

by:josephfluckiger
ID: 9922343
ok, thanks.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now