queryRun queryRunLoc; ; queryRunLoc = new QueryRun(.query()); while (queryRunLoc.next()) { inventJournalTransLoc = queryRunLoc.get(tablenum(inventJournalTrans)); }