Well, the short answer is the table "tblAttendance" has a field named "ysnMeetingID" and the code is looking for a field name of "MeetingID".
There is a text box on "frmAttendance" that has the control source of
Code:
=meetingAttendance([cboMeetingID],[optPersonnel])
In the function meetingAttendance, there is a line
Code:
totalPersonnel = DCount("[MeetingID]", "qryAttendance", "[MeetingID] = " & MeetingID)
The field name should be
Code:
totalPersonnel = DCount("[ysnMeetingID]", "qryAttendance", "[ysnMeetingID] = " & MeetingID)
Note: in the function, there are 4 lines with the wrong field name!!