Workaholic_711
Registered User.
- Local time
- Today, 13:00
- Joined
- Apr 9, 2019
- Messages
- 15
Hello experts,
I am learning VBA coding and came across the following issue:
I have an access database which has a table named CPT_CODES_String. It has the following fields:
CLAIM_ID, SERVICE_DATE, CPT_CODES, KEY(CLAIM_ID+SERVICE_DATE)
One Claim can have mutiple cpt codes. I want to concatenate CPT Codes corresponding to a Claim_ID in a single row.
For example:
Claim ID CPT Code
1 A
1 B
1 C
2 Z
2 E
Desired Output:
Claim ID CPT Code
1 A,B,C
2 Z,E
I tried Allen Browne's ConcatRelated but failed to write the vba code and also the ConcatRelated function using fields from one table only.
Could you please help me write the function as well as the vba code using the above table and field names?
Thank you.
I am learning VBA coding and came across the following issue:
I have an access database which has a table named CPT_CODES_String. It has the following fields:
CLAIM_ID, SERVICE_DATE, CPT_CODES, KEY(CLAIM_ID+SERVICE_DATE)
One Claim can have mutiple cpt codes. I want to concatenate CPT Codes corresponding to a Claim_ID in a single row.
For example:
Claim ID CPT Code
1 A
1 B
1 C
2 Z
2 E
Desired Output:
Claim ID CPT Code
1 A,B,C
2 Z,E
I tried Allen Browne's ConcatRelated but failed to write the vba code and also the ConcatRelated function using fields from one table only.
Could you please help me write the function as well as the vba code using the above table and field names?
Thank you.