QMF objects (queries, procedures, and forms) that are retrieved from the database must reside at the current location. If you start your QMF session connected to location CHICAGO and then connect to location NEWYORK, you can only run your query if it is in NEWYORK.