I want to capture memofields from multiple tables and concatenate them so I can see changes chronologically for all the tables or chronologically by table when grouped by table.
Each table in my application tracks additions and changes to the data in a memo field "Updates" and each change is time stamped.
The Updates entries have this format:
[highlight] County Data Added: Sublette by 05830 on 6/16/2009 3:10:54 PM
State Data Added: Wyoming by 05830 on 6/16/2009 3:10:54 PM
RigName Data Added: Unit 235 by 05830 on 6/16/2009 3:12:06 PM
Mudloggers changed from '1-man' to '1 man- 300' above TKU to TD' by 05830 on 6/16/2009 3:31:36 PM
New Record Added by 05830 on 6/16/2009 3:31:45 PM
API Data Added: 49035271640000 by 05830 on 6/16/2009 3:31:45 PM[/highlight]
It's fairly easy to concatenate the Updates field for each of the 22 tables although sort of cumbersome. So far I've been doing the following:
I would like to be able to parse each line and be able to sort by the time stamp. I would also like be able to assign the table name to each line entry so I can sort or group by table name if needed.
[highlight]The only way I can think of doing this is to:
1. Concatenate all the Updates fields
2. Capture them in a txt file
3. Create some macro\VBA code to parse the data in Excel
4. re-import the data into access to create a report[/highlight]
The report would be for a single record and I probably would not be doing this for more than a few records at a time.
Questions:
Best Way to Concatenate?
Would a Union Query work here?
Once concatenated anyway to sort by the timestamp on that line?
Any other suggestions would be appreciated.
Each table in my application tracks additions and changes to the data in a memo field "Updates" and each change is time stamped.
The Updates entries have this format:
[highlight] County Data Added: Sublette by 05830 on 6/16/2009 3:10:54 PM
State Data Added: Wyoming by 05830 on 6/16/2009 3:10:54 PM
RigName Data Added: Unit 235 by 05830 on 6/16/2009 3:12:06 PM
Mudloggers changed from '1-man' to '1 man- 300' above TKU to TD' by 05830 on 6/16/2009 3:31:36 PM
New Record Added by 05830 on 6/16/2009 3:31:45 PM
API Data Added: 49035271640000 by 05830 on 6/16/2009 3:31:45 PM[/highlight]
It's fairly easy to concatenate the Updates field for each of the 22 tables although sort of cumbersome. So far I've been doing the following:
Code:
Updates Summary: " data_WellHeader " & [data_WellHeader]![Updates] & " data_LogEval " & [data_LogEval]![Updates] & " data_LogEvalDetail " & [data_LogEvalDetail]![Updates]
I would like to be able to parse each line and be able to sort by the time stamp. I would also like be able to assign the table name to each line entry so I can sort or group by table name if needed.
[highlight]The only way I can think of doing this is to:
1. Concatenate all the Updates fields
2. Capture them in a txt file
3. Create some macro\VBA code to parse the data in Excel
4. re-import the data into access to create a report[/highlight]
The report would be for a single record and I probably would not be doing this for more than a few records at a time.
Questions:
Best Way to Concatenate?
Would a Union Query work here?
Once concatenated anyway to sort by the timestamp on that line?
Any other suggestions would be appreciated.