QR Master file access

I'm having a problem accessing values from master files while parsing
through detail files.  For example, I'm trying to create an orders report
which shows customer name form the customer master file.  The orders file
contains only the customer ID.  If I use a QRDBText component with CUSTOMER
as the datasource & CUSTOMER_NAME as the field, I get the same valued no
matter what the ID is in the detail file.  How do I get the pointer to move
in the CUSTOMER table?