skipit
Kid at heart
- Local time
- Yesterday, 20:18
- Joined
- Feb 11, 2002
- Messages
- 17
Hello all,
I have a table that is imported from some test software we use. We do a test of three parts with a reading for each part which would make a Series of three. See below..
PartNum Reading SeriesNumber SubSeriesNum RecordDate
G1234 150.5 2212 1 10/20/03
G1234 154.6 2212 2 10/20/03
G1234 152.4 2212 3 10/20/03
R2222 200.2 5551 1 10/21/03
R2222 205.4 5551 2 10/21/03
R2222 204.1 5551 3 10/21/03
The PartNum is our identifier for our part we test. The Reading is our result for said part. The SeriesNumber is a number generated by the testing software, it is the same for all three test results for the Part. The SubSeriesNum is the number of the test in the set of three I.E. 1 means the first Reading, 2 means the second Reading and 3 means the third Reading for the Part. The RecordDate is an auto date I setup in Access.
I know this may seem redunent but the testing software we use will not export the three Readings to one row thus we have three rows for one SeriesNumber. In order to import these readings into our Statisical software I am trying to use three qrys to get the readings. The Stat software will only accept the readings if they are in a row with the PartNumber and other info in the same row. (The way the info is exported to Access it is in columns.)
So my first qry will look like this pulls the first reading from the table:
PartNum Reading SeriesNumber SubSeriesNum RecordDate
G1234 150.5 2212 1 10/20/03
R2222 200.2 5551 1 10/21/03
Second qry, this pulls the second reading from the tbl:
PartNum Reading SeriesNumber SubSeriesNum RecordDate
G1234 154.6 2212 2 10/20/03
R2222 205.4 5551 2 10/21/03
Third qry, this pulls the third reading from the tbl:
PartNum Reading SeriesNumber SubSeriesNum RecordDate
G1234 152.4 2212 3 10/20/03
R2222 204.1 5551 3 10/21/03
Now I make a fourth qry. In design view I add the three qrys above and join them all by SeriesNumber and RecordDate. My thinking by doing this is that it will show me the readings for the part number with the same SeriesNumber in one row. Similar to below:
PartNum Reading1 Reading2 Reading3 SeriesNum RecordDate
G1234 150.5 154.6 152.4 2212 10/20/03
R2222 200.2 205.4 204.1 5515 10/21/03
When I run this fourth qry instead of getting the two rows shown above from the six rows of the table I get about 20 rows with combinations of the readings mixed up not grouping by the series number or date.
I hope I explained this ok I reread it and it makes sense to me but I have been looking at the qrys for a few days now. If anyone can help me out or point me in the right direction I will be grateful. I am not sure this is the way to go but I need the three readings in three seperate fields in a row not in columns.
Thanks in advance,
Skip
I have a table that is imported from some test software we use. We do a test of three parts with a reading for each part which would make a Series of three. See below..
PartNum Reading SeriesNumber SubSeriesNum RecordDate
G1234 150.5 2212 1 10/20/03
G1234 154.6 2212 2 10/20/03
G1234 152.4 2212 3 10/20/03
R2222 200.2 5551 1 10/21/03
R2222 205.4 5551 2 10/21/03
R2222 204.1 5551 3 10/21/03
The PartNum is our identifier for our part we test. The Reading is our result for said part. The SeriesNumber is a number generated by the testing software, it is the same for all three test results for the Part. The SubSeriesNum is the number of the test in the set of three I.E. 1 means the first Reading, 2 means the second Reading and 3 means the third Reading for the Part. The RecordDate is an auto date I setup in Access.
I know this may seem redunent but the testing software we use will not export the three Readings to one row thus we have three rows for one SeriesNumber. In order to import these readings into our Statisical software I am trying to use three qrys to get the readings. The Stat software will only accept the readings if they are in a row with the PartNumber and other info in the same row. (The way the info is exported to Access it is in columns.)
So my first qry will look like this pulls the first reading from the table:
PartNum Reading SeriesNumber SubSeriesNum RecordDate
G1234 150.5 2212 1 10/20/03
R2222 200.2 5551 1 10/21/03
Second qry, this pulls the second reading from the tbl:
PartNum Reading SeriesNumber SubSeriesNum RecordDate
G1234 154.6 2212 2 10/20/03
R2222 205.4 5551 2 10/21/03
Third qry, this pulls the third reading from the tbl:
PartNum Reading SeriesNumber SubSeriesNum RecordDate
G1234 152.4 2212 3 10/20/03
R2222 204.1 5551 3 10/21/03
Now I make a fourth qry. In design view I add the three qrys above and join them all by SeriesNumber and RecordDate. My thinking by doing this is that it will show me the readings for the part number with the same SeriesNumber in one row. Similar to below:
PartNum Reading1 Reading2 Reading3 SeriesNum RecordDate
G1234 150.5 154.6 152.4 2212 10/20/03
R2222 200.2 205.4 204.1 5515 10/21/03
When I run this fourth qry instead of getting the two rows shown above from the six rows of the table I get about 20 rows with combinations of the readings mixed up not grouping by the series number or date.
I hope I explained this ok I reread it and it makes sense to me but I have been looking at the qrys for a few days now. If anyone can help me out or point me in the right direction I will be grateful. I am not sure this is the way to go but I need the three readings in three seperate fields in a row not in columns.
Thanks in advance,
Skip
