>Hi,
>I have define lnRow as PUBLIC
John,
This is an example of why PUBLIC variables are dangerous. It is possible that the value of lnRow could be changed anywhere in your program, even by accident.
You should narrow the scope of lnRow as much as possible...perhaps make it a property of the form.
Perhaps lnRow is not being changed, but it is not worth the risk.
Steve Gibson