By
Solvax
Hi,
I'm trying to make a subsummary report with data from the current table and a related table.
I never get to display the correct totals for the related table, and would therefore appreciate your help.
First I'll try to explain the workflow:
I have two tables called 'Voorraad_uit' (= outgoing stock) and 'Voorraad_in' (= incoming stock) which are related by delivery number.
Data is first entered in 'Voorraad_in' (= incoming stock) and then related records are created in 'Voorraad_uit' when an incoming stock item is partly or completely shipped. This second table contains mainly the outgoing amount and a unique outgoing delivery ID.
As a consequence, one record in table 'Voorraad_in' (= incoming stock) can have one ore more related records in 'Voorraad_uit' (=outgoing stock).
I want to make a subsummary report showing the total amount of incoming and outgoing units per product(name) by using the following layout structure:
I tried two scenarios which each give me a part of the desired result.
when I base the layout on 'Voorraad_in' (=incoming stock):
I get the right totals for incoming deliveries
I get all the incoming deliveries listed (also those without outgoing delivery)
Body part 3 (see above) only shows one row also when there are more than one related outgoing transactions
I get the wrong totals for outgoing deliveries (only based on one record)
when I base the layout on 'Voorraad_uit' (=outgoing stock):
I get the wrong totals for incoming deliveries
I don't get all the incoming deliveries listed (only those with outgoing delivery)
Body part 3 (see above) shows all the related outgoing transactions
I get the right totals for outgoing deliveries
Main goal is having the right totals for both incoming and outgoing deliveries..
My layout is sorted ascending by (in mentioned order) productname, incoming delivery number and outgoing delivery number.
The totals are calculated by using summary fields.
I hope I'm on the right track and that the desired result is possible.. your help is much appreciated!
Thanks in advance for your help.
Regards,
Solvax
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now