May 24, 2011 #1 lr999 Technical User May 16, 2011 30 US I have a field with 0 or -1 value, I need to add a count for this field on a report. Can you provide a sample of vba code for this variable
I have a field with 0 or -1 value, I need to add a count for this field on a report. Can you provide a sample of vba code for this variable
May 24, 2011 #2 randy700 Programmer Sep 25, 2003 2,384 US If the field has a value of 0 or -1, it sounds like a yes/no field. What do you want to "count" ? Randy Upvote 0 Downvote
If the field has a value of 0 or -1, it sounds like a yes/no field. What do you want to "count" ? Randy
May 24, 2011 #3 S SkipVought Programmer Dec 4, 2001 47,487 US "Yes!" we have "No" banannas! Skip, Just traded in my old subtlety... for a NUANCE! Upvote 0 Downvote
May 24, 2011 #4 MajP Technical User Aug 27, 2005 9,382 US sum([fieldName]) * -1 : total true records sum([fieldName] + 1) : total false records count([fieldname]) : total records Upvote 0 Downvote
sum([fieldName]) * -1 : total true records sum([fieldName] + 1) : total false records count([fieldname]) : total records