OK, I know this is going to be easy for the gurus on this site.
I'm performing a merging of two outside databases. One database stores WorkOrder/Service Code activity one record per customer with the Service Code activity in one long field, the other database shows activity one record per Service Code. For my purposes, I'm trying to convert the former to the latter.
The tables show the type of activity for a customers Work Order, whether the customer Added a service (+) or subtracted a service (-). Each Svc code is 2 positions preceded by the +/-. (Some codes have a blank in the 1st position.) There can be dozens of codes in this field.
The Current Table is
AcctNumber SvcCode
1234 -G3-14-21-55-74
4568 +08+H1+ 5-07
The New Table I want is
AcctNumber SvcCode Action
1234 G3 -1
1234 14 -1
1234 21 -1
1234 21 -1
1234 55 -1
1234 74 -1
4568 08 1
4568 H1 1
4568 5 1
4568 07 -1
How do I go about this?
Thanks.
P.S. This is my first post after spending many hours of finding solutions/ideas on this site. Thanks to all contributors.
I'm performing a merging of two outside databases. One database stores WorkOrder/Service Code activity one record per customer with the Service Code activity in one long field, the other database shows activity one record per Service Code. For my purposes, I'm trying to convert the former to the latter.
The tables show the type of activity for a customers Work Order, whether the customer Added a service (+) or subtracted a service (-). Each Svc code is 2 positions preceded by the +/-. (Some codes have a blank in the 1st position.) There can be dozens of codes in this field.
The Current Table is
AcctNumber SvcCode
1234 -G3-14-21-55-74
4568 +08+H1+ 5-07
The New Table I want is
AcctNumber SvcCode Action
1234 G3 -1
1234 14 -1
1234 21 -1
1234 21 -1
1234 55 -1
1234 74 -1
4568 08 1
4568 H1 1
4568 5 1
4568 07 -1
How do I go about this?
Thanks.
P.S. This is my first post after spending many hours of finding solutions/ideas on this site. Thanks to all contributors.