def getJoinRecords(tablesAndFields)
      joinRecords = []
      iterateJoinRecords(tablesAndFields)  { |joinRecord|
         joinRecords << joinRecord.dup
      } 
      joinRecords
   end
def getJoinRecords(tablesAndFields)
      joinRecords = []
      iterateJoinRecords(tablesAndFields)  { |joinRecord|
         joinRecords << joinRecord.dup
      } 
      joinRecords
   end
Get an array of records from two or more tables and/or queries with the same value in a 'join' field.
 The 'joinfield' does not have to have the same name in each table.
 Fields with the same name in each table will be merged, with the value from the last
 table being assigned. This is similar to an SQL JOIN.