K
kjjames via AccessMonster.com
I will try to provide as much info as possible without making my question too
complicated...
I have a search form based on Allen Browne's search form, which works great.
The form's source is a query (provided below).
The basic format of the database is that it holds resource info, books,
magazines, etc. Each publication has many projects. Some projects have
multiple techniques or topics or types associated with them. So, in order to
be able to associate the many-to-many link, there are tables as follows:
tblProjects:
ProjectID
ProjectName
ProjectNotes, etc
tblProjectType
ProjectTypeID
ProjectType
tblProjectTypeProject (many-to-many table)
ProjectTypeID
ProjectID
Again, the form performs the search perfectly. The issue is that when I open
the form, it takes a while to open. I have it set so that no records will
show when the form opens. At this point, I have around 1300 projects entered.
If I need to restructure my tables, I will do that. I still need to be able
to enter multiple Project Types, Topics and Techniques, so suggestions on how
to do that would be great. Or, do I need to restructure my query. Any help
would be appreciated.
Thank you. Karen
SELECT tblProjectType.ProjectType, tblTechnique.Technique, tblTopic.TopicName,
tblPublications.PublicationTitle, tblPublications.Volume, tblPublications.
Issue, tblPublications.Date, tblProjects.ProjectName, tblProjects.
ProjectNotes
FROM (tblTopic INNER JOIN tblTechnique ON tblTopic.TopicID = tblTechnique.
TopicID) INNER JOIN (tblPublications INNER JOIN (tblProjectType INNER JOIN
(tblProjects INNER JOIN ((tblProjTypeProj INNER JOIN tblTechProj ON
tblProjTypeProj.ProjectID = tblTechProj.ProjectID) INNER JOIN tblProjectTopic
ON tblTechProj.ProjectID = tblProjectTopic.ProjectID) ON (tblProjects.
ProjectID = tblTechProj.ProjectID) AND (tblProjects.ProjectID =
tblProjTypeProj.ProjectID) AND (tblProjects.ProjectID = tblProjectTopic.
ProjectID)) ON tblProjectType.ProjectTypeID = tblProjTypeProj.ProjectTypeID)
ON tblPublications.PublicationID = tblProjects.PublicationID) ON (tblTopic.
TopicID = tblProjectTopic.TopicID) AND (tblTechnique.TechniqueID =
tblTechProj.TechniqueID);
complicated...
I have a search form based on Allen Browne's search form, which works great.
The form's source is a query (provided below).
The basic format of the database is that it holds resource info, books,
magazines, etc. Each publication has many projects. Some projects have
multiple techniques or topics or types associated with them. So, in order to
be able to associate the many-to-many link, there are tables as follows:
tblProjects:
ProjectID
ProjectName
ProjectNotes, etc
tblProjectType
ProjectTypeID
ProjectType
tblProjectTypeProject (many-to-many table)
ProjectTypeID
ProjectID
Again, the form performs the search perfectly. The issue is that when I open
the form, it takes a while to open. I have it set so that no records will
show when the form opens. At this point, I have around 1300 projects entered.
If I need to restructure my tables, I will do that. I still need to be able
to enter multiple Project Types, Topics and Techniques, so suggestions on how
to do that would be great. Or, do I need to restructure my query. Any help
would be appreciated.
Thank you. Karen
SELECT tblProjectType.ProjectType, tblTechnique.Technique, tblTopic.TopicName,
tblPublications.PublicationTitle, tblPublications.Volume, tblPublications.
Issue, tblPublications.Date, tblProjects.ProjectName, tblProjects.
ProjectNotes
FROM (tblTopic INNER JOIN tblTechnique ON tblTopic.TopicID = tblTechnique.
TopicID) INNER JOIN (tblPublications INNER JOIN (tblProjectType INNER JOIN
(tblProjects INNER JOIN ((tblProjTypeProj INNER JOIN tblTechProj ON
tblProjTypeProj.ProjectID = tblTechProj.ProjectID) INNER JOIN tblProjectTopic
ON tblTechProj.ProjectID = tblProjectTopic.ProjectID) ON (tblProjects.
ProjectID = tblTechProj.ProjectID) AND (tblProjects.ProjectID =
tblProjTypeProj.ProjectID) AND (tblProjects.ProjectID = tblProjectTopic.
ProjectID)) ON tblProjectType.ProjectTypeID = tblProjTypeProj.ProjectTypeID)
ON tblPublications.PublicationID = tblProjects.PublicationID) ON (tblTopic.
TopicID = tblProjectTopic.TopicID) AND (tblTechnique.TechniqueID =
tblTechProj.TechniqueID);