I need to create the gift counter field in a query field that counts the number of gifts by Id and starts over when it detects a new ID. The ID and gift_date fields are already sorted in ascending order. I have experimented with DCount. This has proven not to work Nz(DCount("*","All_Gifts","[Constituent ID] <= " & [Constituent ID]),0)+1 I would prefer to do this as a field within the same query rather than have to create another query and join it back since the dataset is large. These are the results I am looking for:
Constituent ID Gift_date Gift_counter 1112 3/15/2015 1 1112 4/15/2015 2 1112 5/15/2015 3 1225 1/12/2015 1 1225 2/15/2015 2 1225 3/15/2015 3 1225 4/15/2015 4 1381 2/15/2015 1 1381 3/15/2015 2
Thank you