GJT
Registered User.
- Local time
- Today, 18:23
- Joined
- Nov 5, 2002
- Messages
- 116
I have a report schedule that displays various information for our production dept. The underlying query for this report returns a number of fields from a handful of tables.
I now need to add an additional couple of fields to this report that will detail the appoximate time to complete the job.
In a nutshell, the report has a product code identifier - this identifier specifies a particular component size. I have written a query that returns the top 5 records from a SIZEDATA table (for this identifier) and a secondary query AVG_TIME that calculates the average of these times. This 'Average' information I need returned and displayed on the report. I have tried using a sub-form (whose control source is AVG_TIME - and the parent - child links specify the identifier as detailed above) but this does not seem to be working properly.
Can you identify where I could be going wrong or is there a simpler way of constructing such a query?
Regards
GJT
I now need to add an additional couple of fields to this report that will detail the appoximate time to complete the job.
In a nutshell, the report has a product code identifier - this identifier specifies a particular component size. I have written a query that returns the top 5 records from a SIZEDATA table (for this identifier) and a secondary query AVG_TIME that calculates the average of these times. This 'Average' information I need returned and displayed on the report. I have tried using a sub-form (whose control source is AVG_TIME - and the parent - child links specify the identifier as detailed above) but this does not seem to be working properly.
Can you identify where I could be going wrong or is there a simpler way of constructing such a query?
Regards
GJT