G
Guest
I'm a VBA rookie. I'm attempting to count the number of events that could be
listed in multiple rows due to multiple products associated with the event.
I am adding a group header on the report for each district, so I want a total
for each district. I went to google and found code that I thought was
similar to my situation. However, as I'm attempting, I'm realizing that it
doesn't know what to count. This code counts records in a grouping, but I
can't do that because events may have more than 1 record due to multiple
products. Here are the lines of code that I copied
intEventCount = 0
intEventCount = intEventCount + 1
Me!Text16.Value = intEventCount
I want to count unique values of a field called Event_Row_ID. My question
is, how can I tell VBA that is what I want to count, and I only want to count
unique values. Text16 is the text box that will show the sum.
Thank you in advance for your help.
listed in multiple rows due to multiple products associated with the event.
I am adding a group header on the report for each district, so I want a total
for each district. I went to google and found code that I thought was
similar to my situation. However, as I'm attempting, I'm realizing that it
doesn't know what to count. This code counts records in a grouping, but I
can't do that because events may have more than 1 record due to multiple
products. Here are the lines of code that I copied
intEventCount = 0
intEventCount = intEventCount + 1
Me!Text16.Value = intEventCount
I want to count unique values of a field called Event_Row_ID. My question
is, how can I tell VBA that is what I want to count, and I only want to count
unique values. Text16 is the text box that will show the sum.
Thank you in advance for your help.