Access 2010 report. I am trying to use DCount but have a string for the fieldname and cannot figure out the correct syntax. This is what I have tried:
txtMiscYes1 = DCount("[" & str1 & "]", "tblTemp", "[" & str1 & "]" = '1')
I want to count any answer that has a 1 and skip a 2 or 3 answer.
Thank you for your help.
LIsa
txtMiscYes1 = DCount("[" & str1 & "]", "tblTemp", "[" & str1 & "]" = '1')
I want to count any answer that has a 1 and skip a 2 or 3 answer.
Thank you for your help.
LIsa