Link to home
Start Free TrialLog in
Avatar of mgroarty
mgroarty

asked on

ADO Events ('MoveComplete')

I was wondering if anyone could tell me how to solve this problem.
 
for my college project, for which I am Using VB6, I have set up a few ADO connections from code (i.e. not by selecting the icon in the toolbar).
 
How do I access their events to write code in them particuarly the 'moveComplete' event.
Also am I right in assuming this event executes after record navigation?
 
Thanks
 
Michael
Avatar of appari
appari
Flag of India image

change your declarations to something like this (form level)

Dim withEvents RS1 as adodb.recordset

then you can access all events connected to recordset object. and MoveComplete event is available with recordset object only not with Connection. and MoveComplete fires after moving the record.

MSDN says

The WillMove method is called before a pending operation changes the current position in the Recordset. The MoveComplete method is called after the current position in the Recordset changes.


ASKER CERTIFIED SOLUTION
Avatar of shahzad73
shahzad73

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mgroarty
mgroarty

ASKER

Cheers for the help! Only another 255 probs to fix!!
u welcome

Shahzad