| I'm kind of guessing on this one, since I'm not exactly sure I understand
what you want to do. But it seems that the actual data set you want to bind
to is the directory of files (reports) that are out there. I think your two
ALL-IN-1 data files are only a "lookup" mechanism to get the user's name and
the report type, given their "codes".
If that assumption is correct, you might be able to do something like:
BIND *FILES TO OA$DIR:"REPORT$DIR:*.*"
and then use the /ALIAS qualifer, along with ALL-IN-1 data set references, in
the various fields of the index form. If you wanted to just look at the reports
for the person with Sales ID = "123", for example, you might even change the
BIND to something like:
BIND *FILES TO OA$DIR:"REPORT$DIR:*.*" WITH .NAME <=> "123"
If your two key fields (Sales ID and Report ID) are already stored in
symbols, you should be able to refer to their full descriptions (in the ALL-IN-1
data files) using DSRs such as SALES_ID.USERNAME[#SID] or
REPORT_TYPE.DESCRIPTION[#REPORT_ID].
Is that what you're getting at?
F
|