bcooler
Programmer
- Jun 13, 2009
- 132
Hello-
I have imported .CSV information into a temporary table called tblImport1. The difficulty is that the first 13 rows of info are header info, while the rest is data (see below). I'm wanting to move these 13 rows/1 column (Field2) into another table (tblHeader) with one row and 13 columns. Then I need to move the data (starting at ID=2651) into a related table (as is).
I keep seeing websites recommending crosstab queries, but I don't have experience there (I tried the wizard, but not much luck either). Also, I really only need to talk to the first 13 rows here. Maybe a recordset method to surgically extract the info? Just not sure where to go here.
Thanks!
Brian
I have imported .CSV information into a temporary table called tblImport1. The difficulty is that the first 13 rows of info are header info, while the rest is data (see below). I'm wanting to move these 13 rows/1 column (Field2) into another table (tblHeader) with one row and 13 columns. Then I need to move the data (starting at ID=2651) into a related table (as is).
Code:
ID Field1 Field2 Field3 Field4 Field5 Field6
2638 HD Data File
2639 Acquisition Date: NOT IMPLEMENTED
2640 Acquisition Time: 20140408_143148
2641 Integration Time(ms): 1700
2642 Laser Power: 100
2643 Device Pixel Count: 512
2644 Mode: CUSTOM Screening Mode
2645 Primary:Inconclusive or Not In Library.
2646 Secondary:
2647 S Hardware Version: NOT IMPLEMENTED
2648 S Software Version: NOT IMPLEMENTED
2649 S Serial Number: G1005
2650 Software Build Date: Feb 11 2014
2651 WN Sub For Back Fil1 Fil2
2652 253.5 7020 28103 21633 2173 1102
2653 258.0 6869 26858 20564 2040 952
2654 262.6 6659 29232 23123 1817 791
I keep seeing websites recommending crosstab queries, but I don't have experience there (I tried the wizard, but not much luck either). Also, I really only need to talk to the first 13 rows here. Maybe a recordset method to surgically extract the info? Just not sure where to go here.
Thanks!
Brian