C
Chuck W
Hi,
I am writing a query against a table I did not create and cannot change. It
is poorly designed with fields that repeat. It is driven by an input form
that has AdmitDate and then HAPU1, HAPU2, HAPU3, HAPU4, HAP5 and HAPU6.
These HAPU fields are all Yes or No (or null). I want to write a query that
will sum all of the Yes values into one field so that I have AdmitDate and
HAPUTotal. My data looks like this:
AdmitDate HAPU1 HAPU2 HAPU3 HAPU4 HAPU5 HAPU6
3/1/09 Yes Yes No NO
3/15/09 Yes No
3/20/09 Yes
3/22/09 Yes Yes Yes
3/25/09 Yes No
3/26/09 Yes Yes Yes Yes Yes Yes
I have been trying the Abs function but can't seem to get it to work. Can
someone help? Thanks, Chuck
I am writing a query against a table I did not create and cannot change. It
is poorly designed with fields that repeat. It is driven by an input form
that has AdmitDate and then HAPU1, HAPU2, HAPU3, HAPU4, HAP5 and HAPU6.
These HAPU fields are all Yes or No (or null). I want to write a query that
will sum all of the Yes values into one field so that I have AdmitDate and
HAPUTotal. My data looks like this:
AdmitDate HAPU1 HAPU2 HAPU3 HAPU4 HAPU5 HAPU6
3/1/09 Yes Yes No NO
3/15/09 Yes No
3/20/09 Yes
3/22/09 Yes Yes Yes
3/25/09 Yes No
3/26/09 Yes Yes Yes Yes Yes Yes
I have been trying the Abs function but can't seem to get it to work. Can
someone help? Thanks, Chuck