The easiest way is by using global variables, but a lot depends on exactly what you are trying to do. If you are looking to pass additional information from other grid cells to the Query you might want to create a query program that can pull the data from the other cells in the grid and transfer that to the query which it could call.