I have an Access 2000 database that has a table 'tblCourse' and a
table 'tblRegistratio n'.
They are linked via a Primary key 'CourseID' in 'tblCourse' to a
foreign key 'CourseID' in the tblRegistration , this is a one to many
relationship. The Primary key in the tblRegistration is
RegistrationID.
When I construct a query that has 'CourseID' and then e.g.
"CountRegistrat ionID:
IIf(IsNull(Coun t([tblRegistration].[RegistrationID]),0,
Count([tblRegistration].[RegistrationID]))" as the two fields, it will
not include the courses that have no registrations in them.
What I am wanting to obtain is a list of 'all' the courses including
the ones that don't have any registrations in them.
Do you have any ideas as to how to do this, or is it not possible?
Frustrated.
table 'tblRegistratio n'.
They are linked via a Primary key 'CourseID' in 'tblCourse' to a
foreign key 'CourseID' in the tblRegistration , this is a one to many
relationship. The Primary key in the tblRegistration is
RegistrationID.
When I construct a query that has 'CourseID' and then e.g.
"CountRegistrat ionID:
IIf(IsNull(Coun t([tblRegistration].[RegistrationID]),0,
Count([tblRegistration].[RegistrationID]))" as the two fields, it will
not include the courses that have no registrations in them.
What I am wanting to obtain is a list of 'all' the courses including
the ones that don't have any registrations in them.
Do you have any ideas as to how to do this, or is it not possible?
Frustrated.
Comment