Forum Discussion
garprob
Jan 31, 2023Copper Contributor
Newby trying to total all the Yes's
HI. I am not an Access user and know very little about it. I do use one Access 2007 database as one part of my job. I now need to create a report from it. I have figured out how to make the repor...
garprob
Copper Contributor
Thanks for your ideas, but when I type in either of those formulas I get an error- "Data type mismatch in criteria expression". I included a couple of screen shots showing what a portion of the report and the design screens look like. I tried putting your formula in the text box next to "total approved" where it currently says "unbound". Have I done something wrong?
arnel_gp
Feb 03, 2023Steel Contributor
it seems your Approval field is Short Text:
=Sum(([Approval] & "" = "Yes") * -1)
=Sum(([Approval] & "" = "Yes") * -1)