Vivirtruvian
Registered User.
- Local time
- Today, 11:53
- Joined
- Jun 20, 2017
- Messages
- 19
Hi all,
Hopefully I can spell out my issue coherently enough for people to follow!
I have a report that is based on a Union Query that is generating an invoice for transport jobs. There are two numbers that I need to quote on the invoice that relate to each individual job (Job no. & Docket no.) that are causing me some issues.
Now, for some context: the database is for a transport/warehouse company that tracks everything on a pallet basis. Every pallet has a 'Job no' that we collected the pallet(s) on, and a 'Delivery no' that is generated by the supplier. On occasion, we may have two 'Delivery' numbers come in on the same truck or job.
I have a union query that gathers up all of the job information by a date range, and calculates the charges applicable for each job through a range of queries (certain charges apply at different thresholds of pallets loaded on a truck). This has to be Group(ed) By 'Job no' to ensure that the job itself is properly calculated and as such, 'Delivery no' is not included in this query - if it were, it starts to split the jobs due to the Group By function of the query further breaking down the fields.
This leads me to the issue with the report: I have the report set up to quote each job number and the charges for that job. What I need to include is a sub-line below each job that will reference each customer's 'Delivery no' for their reconciliation purposes. For example:
Unfortunately all attempts to put the Delivery numbers in have resulted in:
a. nothing
b. #Error
c. a grouped list of the Delivery numbers, but all of them ie. not specific to each Job no.
Hope that is making sense. Any help is always appreciated.
Hopefully I can spell out my issue coherently enough for people to follow!
I have a report that is based on a Union Query that is generating an invoice for transport jobs. There are two numbers that I need to quote on the invoice that relate to each individual job (Job no. & Docket no.) that are causing me some issues.
Now, for some context: the database is for a transport/warehouse company that tracks everything on a pallet basis. Every pallet has a 'Job no' that we collected the pallet(s) on, and a 'Delivery no' that is generated by the supplier. On occasion, we may have two 'Delivery' numbers come in on the same truck or job.
I have a union query that gathers up all of the job information by a date range, and calculates the charges applicable for each job through a range of queries (certain charges apply at different thresholds of pallets loaded on a truck). This has to be Group(ed) By 'Job no' to ensure that the job itself is properly calculated and as such, 'Delivery no' is not included in this query - if it were, it starts to split the jobs due to the Group By function of the query further breaking down the fields.
This leads me to the issue with the report: I have the report set up to quote each job number and the charges for that job. What I need to include is a sub-line below each job that will reference each customer's 'Delivery no' for their reconciliation purposes. For example:
Code:
Job no 1 $0.00
Delivery no a
Delivery no b
Job no 2 $0.00
Delivery no c
Job no 3 $0.00
Delivery no d
And so on.
Unfortunately all attempts to put the Delivery numbers in have resulted in:
a. nothing
b. #Error
c. a grouped list of the Delivery numbers, but all of them ie. not specific to each Job no.
Hope that is making sense. Any help is always appreciated.