S
Steve
The following data needs to be placed in a preprinted report:
AssemblyID Assembly ComponentID Component
1 A 1
X1
1 A 2
X2
2 B 3
Y1
2 B 4
Y2
2 B 5
Y3
2 B 6
Y4
2 B 7
Y5
3 C 1
X1
3 C 2
X2
3 C 4
Y3
3 C 5
Y4
3 C 8
Z1
3 C 9
Z2
3 C 10 Z3
The components for a specific assembly need to be concatenated in the
preprinted report. There is only room for three components in a line. When
there are more than three components(Assembly B), the next three components
need to be placed in a second line. .And when there are more than six
components (Assembly C), The next three components need to be placed in a
third line. I need a query that returns the following results for the above
data:
A X1, X2
B Y1, Y2, Y3
B Y4, Y5
C X1, X2, Y3
C Y4, Z1, Z2
C Z3
All help will be nuch appreciated!!
Steve
AssemblyID Assembly ComponentID Component
1 A 1
X1
1 A 2
X2
2 B 3
Y1
2 B 4
Y2
2 B 5
Y3
2 B 6
Y4
2 B 7
Y5
3 C 1
X1
3 C 2
X2
3 C 4
Y3
3 C 5
Y4
3 C 8
Z1
3 C 9
Z2
3 C 10 Z3
The components for a specific assembly need to be concatenated in the
preprinted report. There is only room for three components in a line. When
there are more than three components(Assembly B), the next three components
need to be placed in a second line. .And when there are more than six
components (Assembly C), The next three components need to be placed in a
third line. I need a query that returns the following results for the above
data:
A X1, X2
B Y1, Y2, Y3
B Y4, Y5
C X1, X2, Y3
C Y4, Z1, Z2
C Z3
All help will be nuch appreciated!!
Steve