konad,
I believe that a global variable is only one way, for example from main report to sub. If you are using CR8 you can delcare a "shared" variable and it is accessible to any portion of your report, including subreports. I had a similar situation where I uses a shared array and a shared subscript variable and it worked great! Give it a try.
Dan.