I have a subform with a calculated field that refers to a field in the main form. The main form has a field AssignDate, which is the date the exhibitor was last assigned a booth. The subform contains the individual booth assignments and has a field AssgDate, which is the date that particular booth assignment or booth removal was done. The subform record also included flags to indicate if the assignment is a supersede or the request is to remove a booth from the order. The control source calculated field, txtSup is IIf(([Remove]=True Or [Supersede]=True) And [AssgDate]>[Forms]![frmOrderForAssignment]![AssignDate],1,0). That field works. However, when I create a field in the subform footer with the control source as Sum([txtSup]), it errors out and causes my other summary fields in that form to error out as well. If I change it to Sum(IIf(([Remove]=True Or [Supersede]=True) And [AssgDate]>[Forms]![frmOrderForAssignment]![AssignDate],1,0)), it doesn't work either.
I have a field on the main form to capture the contents of the sum field so when the user is done making changes to the booths in the order, it can check to see if that number is 0 or not. If it is not 0, then the Finish button will update the order with a supersede note and a supersede code. However, that will only work if I can get the original sum field to work. What am I doing wrong?