I need advise and help to generate a report from a query.
I created two Tables, a query and a form:
Table_Parts
Table_Usage
Query_Parts_Usage
Form_Parts
Table_Usage is a sub-form of Table_Parts in Form_Parts
Table_Parts comprises of the Qty, Parts No (Prime and Sub) and Description. A prime part is make up of other sub-parts.
Different sub-parts can be used in different Prime Parts.
Table_Usage comprises of the Usage, Qty, Parts No (Prime and Sub). The table captured the number of times the same sub-parts is used in different prime parts.
Query_Parts_Usage comprises of Table_Parts and Table_Usage. They are related by Parts No. When I run the query, the following is output:
Example
Usage Qty Parts No Description
- - -1 Car A
- - -2 Car B
-1 1 01VTI VTI Engine
-1 4 65N01 Tyres
-1 1 78N02 Steering Wheel
-1 1 80N01 Windshield
-1 2 90N02 Headlamp
-2 1 01CTI CTI Engine
-2 4 65N01 Tyres
-2 1 78N02 Steering Wheel
-2 1 80N01 Windshield
-2 2 90N02 Headlamp
How can I create a Report that can group those sub-parts that is used on a prime part together. I am trying to output a report that looks like this (based on the query):
Usage Qty Parts No Description
*****************-1 Car A**********************
- - -1 Car A
-1 1 01VTI VTI Engine
-1 4 65N01 Tyres
-1 1 78N02 Steering Wheel
-1 1 80N01 Windshield
-1 2 90N02 Headlamp
*****************-2 Car B**********************
- - -2 Car B
-2 1 01CTI CTI Engine
-2 4 65N01 Tyres
-2 1 78N02 Steering Wheel
-2 1 80N01 Windshield
-2 2 90N02 Headlamp
***********************************************
Currently, I am only able to output a report that looks like this:
Usage Qty Parts No Description
- - -1 Car A
- - -2 Car B
-1 1 01VTI VTI Engine
-1 4 65N01 Tyres
-1 1 78N02 Steering Wheel
-1 1 80N01 Windshield
-1 2 90N02 Headlamp
-2 1 01CTI CTI Engine
-2 4 65N01 Tyres
-2 1 78N02 Steering Wheel
-2 1 80N01 Windshield
-2 2 90N02 Headlamp
Appreciate advise.
Thanks,
I created two Tables, a query and a form:
Table_Parts
Table_Usage
Query_Parts_Usage
Form_Parts
Table_Usage is a sub-form of Table_Parts in Form_Parts
Table_Parts comprises of the Qty, Parts No (Prime and Sub) and Description. A prime part is make up of other sub-parts.
Different sub-parts can be used in different Prime Parts.
Table_Usage comprises of the Usage, Qty, Parts No (Prime and Sub). The table captured the number of times the same sub-parts is used in different prime parts.
Query_Parts_Usage comprises of Table_Parts and Table_Usage. They are related by Parts No. When I run the query, the following is output:
Example
Usage Qty Parts No Description
- - -1 Car A
- - -2 Car B
-1 1 01VTI VTI Engine
-1 4 65N01 Tyres
-1 1 78N02 Steering Wheel
-1 1 80N01 Windshield
-1 2 90N02 Headlamp
-2 1 01CTI CTI Engine
-2 4 65N01 Tyres
-2 1 78N02 Steering Wheel
-2 1 80N01 Windshield
-2 2 90N02 Headlamp
How can I create a Report that can group those sub-parts that is used on a prime part together. I am trying to output a report that looks like this (based on the query):
Usage Qty Parts No Description
*****************-1 Car A**********************
- - -1 Car A
-1 1 01VTI VTI Engine
-1 4 65N01 Tyres
-1 1 78N02 Steering Wheel
-1 1 80N01 Windshield
-1 2 90N02 Headlamp
*****************-2 Car B**********************
- - -2 Car B
-2 1 01CTI CTI Engine
-2 4 65N01 Tyres
-2 1 78N02 Steering Wheel
-2 1 80N01 Windshield
-2 2 90N02 Headlamp
***********************************************
Currently, I am only able to output a report that looks like this:
Usage Qty Parts No Description
- - -1 Car A
- - -2 Car B
-1 1 01VTI VTI Engine
-1 4 65N01 Tyres
-1 1 78N02 Steering Wheel
-1 1 80N01 Windshield
-1 2 90N02 Headlamp
-2 1 01CTI CTI Engine
-2 4 65N01 Tyres
-2 1 78N02 Steering Wheel
-2 1 80N01 Windshield
-2 2 90N02 Headlamp
Appreciate advise.
Thanks,