RichMixture
Programmer
Help please! What I have is:
Table1
ID,WO_Number
Table2
ID, dept, op code, op_code_desc
Table3
ID, line_no, part_no, part_desc
Example:
Table1:
365,W19555
Table2:
365,940,800,PAINT
365,949,730,CUT
365,949,750,ASSEMBLE
Table3:
365,1,89005,1/2x3/4 Plywood
365,2,88003,grommet
365,3,77723,window
365,4,00111,molding
The number of lines in tables 2 and 3 will usually not be the same. The desired output eventually is a work order report that will look something like:
W19555
Dept 940 800 PAINT
949 730 CUT
949 750 ASSEMBLE
1 89005 1/2x3/4 Plywood
2 88003 grommet
3 77723 window
4 00111 molding
I'm trying to write a query on which I will base a report, and I keep getting the line numbers repeated for each of the op code/operation descriptions. I'm pretty stuck. Any help is greatly appreciated!!! My query, which queries two other queries (one queries tables 1 and 2, the other queries table 3), returns:
365,W19555,1,89005,1/2x3/4 Plywood,PAINT
365,W19555,2,89005,1/2x3/4 Plywood,CUT
365,W19555,3,89005,1/2x3/4 Plywood,ASSEMBLE
365,W19555,1,89005,grommet,PAINT
365,W19555,2,89005,grommet,CUT
365,W19555,3,89005,grommet,ASSEMBLE
365,W19555,1,89005,window,PAINT
365,W19555,2,89005,window,CUT
365,W19555,3,89005,window,ASSEMBLE
365,W19555,1,89005,molding,PAINT
365,W19555,2,89005,molding,CUT
365,W19555,3,89005,molding,ASSEMBLE
I need some Tek-Tips heat! Thanks ever so much.
Table1
ID,WO_Number
Table2
ID, dept, op code, op_code_desc
Table3
ID, line_no, part_no, part_desc
Example:
Table1:
365,W19555
Table2:
365,940,800,PAINT
365,949,730,CUT
365,949,750,ASSEMBLE
Table3:
365,1,89005,1/2x3/4 Plywood
365,2,88003,grommet
365,3,77723,window
365,4,00111,molding
The number of lines in tables 2 and 3 will usually not be the same. The desired output eventually is a work order report that will look something like:
W19555
Dept 940 800 PAINT
949 730 CUT
949 750 ASSEMBLE
1 89005 1/2x3/4 Plywood
2 88003 grommet
3 77723 window
4 00111 molding
I'm trying to write a query on which I will base a report, and I keep getting the line numbers repeated for each of the op code/operation descriptions. I'm pretty stuck. Any help is greatly appreciated!!! My query, which queries two other queries (one queries tables 1 and 2, the other queries table 3), returns:
365,W19555,1,89005,1/2x3/4 Plywood,PAINT
365,W19555,2,89005,1/2x3/4 Plywood,CUT
365,W19555,3,89005,1/2x3/4 Plywood,ASSEMBLE
365,W19555,1,89005,grommet,PAINT
365,W19555,2,89005,grommet,CUT
365,W19555,3,89005,grommet,ASSEMBLE
365,W19555,1,89005,window,PAINT
365,W19555,2,89005,window,CUT
365,W19555,3,89005,window,ASSEMBLE
365,W19555,1,89005,molding,PAINT
365,W19555,2,89005,molding,CUT
365,W19555,3,89005,molding,ASSEMBLE
I need some Tek-Tips heat! Thanks ever so much.