>Hi Nadya,
>
>After receiving your tips and ran it several times, it works great. Now, I put some codes in the click event for the buttons, and ran the form again the codes in the click event doesn't seem to fire. Do you why?
Could it be, that grid reconstructs itself? Do you change grid's recordsource in code? What else is special about it?
BTW, the code in buttons should look like this:
this.parent.parent.click(this)
In Grid Click you can code:
lparameter toObject
=messagebox("Clicked by "+m.toObject.parent.name)
E.g. it always better to code event in the grid directly rather than in buttons...
If it's not broken, fix it until it is.
My Blog