It is amazing, but it seems our Universe is really synchronistic: another developer has sent us a workaround for this problem a couple of days ago! I've checked it, and it really works, and it can be used in your database too.
The solution is enough simple. You need to define a variable of the iGrid type equipped with WithEvents on the form module level, assign the problem iGrid object to it during the form initialization and then write event handlers for this new object variable. A step-by-step instruction is the following.
First, declare this form variable:
Private WithEvents xGrid As iGrid
Second, add the following statement at the top of Form_Load:
Set xGrid = iGrid0.Object
And finally, replace event declarations for your form control like
Private Sub iGrid0_AfterAutoGroupRowCreated(...)
with this one:
Private Sub xGrid_AfterAutoGroupRowCreated(...)
That's all. Try that, and tell us whether it works. I did this on my pc in your copy of the database, and it worked.
***
P.S. This solution was published as a KB article on our forum here:
iGrid events are not always raised in MS Access
Edited by user
2016-11-10T11:13:10Z
|
Reason: Not specified