sbbrown9924
Technical User
Can you help? I am writing a report where I have 2 tables, SWcodes and SWlog with fields SWcodes.new_code and SWlog.service1 respectively. I would like to be able to count the number of times the value in SWcodes.new_code has been entered in SWlog.service1. Thanks.
SWcodes
id new_code description
1 1000 assessment
2 1010 treatment
3 1020 referral
SWlog
id patient_name service1
1 John Doe 1000
2 Jane Doe 1010
3 Jack Black 1000
4 James Green 1020
Report:
Service Totals:
Assessment 2
Treatment 1
Referral 1
You get the idea. Any help would be appreciated. I am a newbie to ASP VBscript and SQL
SWcodes
id new_code description
1 1000 assessment
2 1010 treatment
3 1020 referral
SWlog
id patient_name service1
1 John Doe 1000
2 Jane Doe 1010
3 Jack Black 1000
4 James Green 1020
Report:
Service Totals:
Assessment 2
Treatment 1
Referral 1
You get the idea. Any help would be appreciated. I am a newbie to ASP VBscript and SQL