K
Keith K
I have repair records which list Repair Date,Repair Order number, VIN
Number (Vehicle ID) and a part number. Each repair order may contain up
to 100 part numbers and the part number variations number in the tens of
thousands. I am trying to create a report in which the first 10 part
numbers used are displayed in one row.
Currently the data structure looks like this
RO Number, RO date, VIN Number, Part Number
RO Number, RO date, VIN Number, Part Number
RO Number, RO date, VIN Number, Part Number
I would like to have the data appear this way in the report (single row
per Repair Order)
RO Number, RO date, VIN Number, Part Number1,Part Number2,Part Number3
....
Because of the variations in part numbers crosstab will not work with
the data.
Now to the question is it possible to construct a select query which
would number sequentially each part number record such that when the RO
number changes the sequential numbering starts over. I guess the data
would look like this .
RO Number, RO date, VIN Number, Part Number,1
RO Number, RO date, VIN Number, Part Number,2
RO Number, RO date, VIN Number, Part Number,3
Next RO number
RO Number, RO date, VIN Number, Part Number,1
RO Number, RO date, VIN Number, Part Number,2
RO Number, RO date, VIN Number, Part Number,3
RO Number, RO date, VIN Number, Part Number,4
RO Number, RO date, VIN Number, Part Number,5
RO Number, RO date, VIN Number, Part Number,6
If I had the sequence number I could write the data to a table and then
construct a cross tab query where the across was on the sequence number
and the part numbers would simply be data.
I have worked with Access for a long time but I have no formal training
or education in programming so any help is greatly appreciated Keith
Kaminetzky KK
Number (Vehicle ID) and a part number. Each repair order may contain up
to 100 part numbers and the part number variations number in the tens of
thousands. I am trying to create a report in which the first 10 part
numbers used are displayed in one row.
Currently the data structure looks like this
RO Number, RO date, VIN Number, Part Number
RO Number, RO date, VIN Number, Part Number
RO Number, RO date, VIN Number, Part Number
I would like to have the data appear this way in the report (single row
per Repair Order)
RO Number, RO date, VIN Number, Part Number1,Part Number2,Part Number3
....
Because of the variations in part numbers crosstab will not work with
the data.
Now to the question is it possible to construct a select query which
would number sequentially each part number record such that when the RO
number changes the sequential numbering starts over. I guess the data
would look like this .
RO Number, RO date, VIN Number, Part Number,1
RO Number, RO date, VIN Number, Part Number,2
RO Number, RO date, VIN Number, Part Number,3
Next RO number
RO Number, RO date, VIN Number, Part Number,1
RO Number, RO date, VIN Number, Part Number,2
RO Number, RO date, VIN Number, Part Number,3
RO Number, RO date, VIN Number, Part Number,4
RO Number, RO date, VIN Number, Part Number,5
RO Number, RO date, VIN Number, Part Number,6
If I had the sequence number I could write the data to a table and then
construct a cross tab query where the across was on the sequence number
and the part numbers would simply be data.
I have worked with Access for a long time but I have no formal training
or education in programming so any help is greatly appreciated Keith
Kaminetzky KK