G
Guest
I have two tables:
Student table with fields of: StudentID and Status (values of Current, New,
Past) plus other fields.
Activity table with fields of: StudentID and Activity plus other fields.
The tables have a one (student table) to many (Activity table) relationship
I have a form where the user selects (using check boxes) a status
(ckCurrent, ckNew or ckPast) and then clicks on a command button which will
produce a report. In the on-click event of the command button I want to use
Dcount to insure that there are entries in the activity table for students
with the selected status? Can this be done, where two tables are involved?
Example. If the user selects “ckPast†and there are no entries in the
activity table for students with a status of Past, I want to display a
message that there are no students for the selected status.
Any help would be appreciated.
Thanks
Student table with fields of: StudentID and Status (values of Current, New,
Past) plus other fields.
Activity table with fields of: StudentID and Activity plus other fields.
The tables have a one (student table) to many (Activity table) relationship
I have a form where the user selects (using check boxes) a status
(ckCurrent, ckNew or ckPast) and then clicks on a command button which will
produce a report. In the on-click event of the command button I want to use
Dcount to insure that there are entries in the activity table for students
with the selected status? Can this be done, where two tables are involved?
Example. If the user selects “ckPast†and there are no entries in the
activity table for students with a status of Past, I want to display a
message that there are no students for the selected status.
Any help would be appreciated.
Thanks