R
Ronster
I need to import a monthly expense text file into Access with the
following layout:
Field1 - SSN
Field2 - Name
Field3 - Month Ending
Starting at Field4 are 20 sets of expense data that requires 4 fields
each (80 fields total). One row per employee.
FieldXX(1st) - Expense Date
FieldXX(2nd) - Expense Description
FieldXX(3rd) - Expense Code
FieldXX(4th) - Expense Amount
The next set of fields are the same, 20 sets total. No, I can't get
the company to change the setup on this text file. I wish.
I need to convert this horizontal data to vertical. One way that seems
to work is running 20 different queries that always pulls field 1,2 and
3, then the next set of expense data. For example Query1 pulls fields
1,2,3,4,5,6,7, Query2 pulls fields 1,2,3,8,9,10,11. I then APPEND this
data to a predefined TABLE called Expense_DB. I end up with all 20
sets fitting into a 7 field table, which is what I want.
My question is there must be an easier way to do this but I'm a newbie
and can't see any other way to get what I want. Any ideas?
following layout:
Field1 - SSN
Field2 - Name
Field3 - Month Ending
Starting at Field4 are 20 sets of expense data that requires 4 fields
each (80 fields total). One row per employee.
FieldXX(1st) - Expense Date
FieldXX(2nd) - Expense Description
FieldXX(3rd) - Expense Code
FieldXX(4th) - Expense Amount
The next set of fields are the same, 20 sets total. No, I can't get
the company to change the setup on this text file. I wish.
I need to convert this horizontal data to vertical. One way that seems
to work is running 20 different queries that always pulls field 1,2 and
3, then the next set of expense data. For example Query1 pulls fields
1,2,3,4,5,6,7, Query2 pulls fields 1,2,3,8,9,10,11. I then APPEND this
data to a predefined TABLE called Expense_DB. I end up with all 20
sets fitting into a 7 field table, which is what I want.
My question is there must be an easier way to do this but I'm a newbie
and can't see any other way to get what I want. Any ideas?