Hello,
I am struggling to find a code to automate the following simplified situation. I am able to understand VBA examples but not really capable to create something that works myself :-(
I have Table1 that will be loaded daily with new data and then combined with Table2 for the ReqCat column and some other data that is related to CaseID
Out of this query1 (Table1 & Table2 combined) I would need some VBA automation in order to append the data in Table3 and create a SubID based on the ReqID and a consecutive number as below.
It should just append data if the record is not already available in Table3 (ReqID, CaseID).
The appended records should be then removed in Table1.
Table1 & Table2 (Query1)
ReqID / ReqCat / Case ID
1 30 A
1 30 B
1 55 C
1 55 D
1 60 E
2 80 B
2 80 C
2 10 A
Table3
ReqID / SubID / ReqCat / Case ID
1 1-1 30 A
1 1-1 30 B
1 1-2 55 C
1 1-2 55 D
1 1-3 60 E
2 2-1 80 B
2 2-1 80 C
2 2-2 10 A
Any help would be highly appreciated.
Thank you.
Steve
I am struggling to find a code to automate the following simplified situation. I am able to understand VBA examples but not really capable to create something that works myself :-(
I have Table1 that will be loaded daily with new data and then combined with Table2 for the ReqCat column and some other data that is related to CaseID
Out of this query1 (Table1 & Table2 combined) I would need some VBA automation in order to append the data in Table3 and create a SubID based on the ReqID and a consecutive number as below.
It should just append data if the record is not already available in Table3 (ReqID, CaseID).
The appended records should be then removed in Table1.
Table1 & Table2 (Query1)
ReqID / ReqCat / Case ID
1 30 A
1 30 B
1 55 C
1 55 D
1 60 E
2 80 B
2 80 C
2 10 A
Table3
ReqID / SubID / ReqCat / Case ID
1 1-1 30 A
1 1-1 30 B
1 1-2 55 C
1 1-2 55 D
1 1-3 60 E
2 2-1 80 B
2 2-1 80 C
2 2-2 10 A
Any help would be highly appreciated.
Thank you.
Steve