G
Guest
I have a delimited text file in the following format
FieldOne FieldTw
A
B
C
A
B
C
The problem is that the first 3 rows are the same record and the next 3 are another record and so on. The file itself is about 6 mb and has 500,000 rows but is actually only 18,000 records (each record actually has 32 columns rather than the 3 shown above). So that I can actually use this data, I need to convert it into the normal format of
A B
1 3
2 9
I am thinking that if one can create a query that returns the source data in the following format, I can use a crosstab query to get the data into the final form
RecordId FieldOne FieldTw
1 A
1 B
1 C
2 A
2 B
2 C
The problem is I don’t know how to populate this additional column through a query. I could generate vba to do this, but then I would need to import the file (rather than link which is what I would like to do) in order to add the additional column
Thank you in advance
FieldOne FieldTw
A
B
C
A
B
C
The problem is that the first 3 rows are the same record and the next 3 are another record and so on. The file itself is about 6 mb and has 500,000 rows but is actually only 18,000 records (each record actually has 32 columns rather than the 3 shown above). So that I can actually use this data, I need to convert it into the normal format of
A B
1 3
2 9
I am thinking that if one can create a query that returns the source data in the following format, I can use a crosstab query to get the data into the final form
RecordId FieldOne FieldTw
1 A
1 B
1 C
2 A
2 B
2 C
The problem is I don’t know how to populate this additional column through a query. I could generate vba to do this, but then I would need to import the file (rather than link which is what I would like to do) in order to add the additional column
Thank you in advance