I am using an external MS Access translation table that maps a code to many departments and many accounts used in each department to the exiting ERP system. For example,
the code is 6020-7010. The 6020 maps to more than one department and the 7010 maps to more than one account. I want to send the value 6020 to the subreport, find all departments and all accounts within these departments and send all of these values back to the main report so that I can display running totals. The code 6020 does not exist anywhere in the ERP system. I would like to send back a string of all the distinct departments and distinct accounts so that I can combine different cobinations of these in the main report.
For Example: send to SUB '6020', return Departments (65282,65283) and
Accounts (602000,602100,602200,602300,602400,604000,604100)for 7010.
I also need to keep the 7010 attached to the accounts returned. There is also a 6020-7020, 6020-7050, etc. which may use the same accounts as 7010.
the code is 6020-7010. The 6020 maps to more than one department and the 7010 maps to more than one account. I want to send the value 6020 to the subreport, find all departments and all accounts within these departments and send all of these values back to the main report so that I can display running totals. The code 6020 does not exist anywhere in the ERP system. I would like to send back a string of all the distinct departments and distinct accounts so that I can combine different cobinations of these in the main report.
For Example: send to SUB '6020', return Departments (65282,65283) and
Accounts (602000,602100,602200,602300,602400,604000,604100)for 7010.
I also need to keep the 7010 attached to the accounts returned. There is also a 6020-7020, 6020-7050, etc. which may use the same accounts as 7010.