I still don't follow this. Can you post both files with sample data/layouts? What code have you written so far?