J
John S. Ford, MD
I have a form called frmSearchForm that reads search criteria and then forms
a SQL statement. This statement collects a subset of hospital admissions
using a Make-Table query. Each record in this "temp" table is a unique
hospital admission in tblAdmissions, primary key AdmissionIDNum.
I then joined this table to tblHospitalAdmissions using AdmissionIDNum as
the common field. The resulting query then becomes the underlying
datasource for a form, frmAdmissionEntry. The original SQL statement in
effect "filters" tblAdmissions for this form. I use a temp table because
the query uses aggregate functions and the joined datasource has to be
updateable.
This works well but at some point, this database will be moved to a
multi-user environment. I'm uncomfortable with having a temporary table be
accessed at the same time by different users.
Is there a way of converting my SQL query into a WHERE condition that can be
applied to the frmAdmissionEntry thereby eliminating the temp table and the
join and just use tblAdmissions as the datasource?
I suspect subqueries can be used but I REALLY don't understand them!
Thanks in advance!
John
a SQL statement. This statement collects a subset of hospital admissions
using a Make-Table query. Each record in this "temp" table is a unique
hospital admission in tblAdmissions, primary key AdmissionIDNum.
I then joined this table to tblHospitalAdmissions using AdmissionIDNum as
the common field. The resulting query then becomes the underlying
datasource for a form, frmAdmissionEntry. The original SQL statement in
effect "filters" tblAdmissions for this form. I use a temp table because
the query uses aggregate functions and the joined datasource has to be
updateable.
This works well but at some point, this database will be moved to a
multi-user environment. I'm uncomfortable with having a temporary table be
accessed at the same time by different users.
Is there a way of converting my SQL query into a WHERE condition that can be
applied to the frmAdmissionEntry thereby eliminating the temp table and the
join and just use tblAdmissions as the datasource?
I suspect subqueries can be used but I REALLY don't understand them!
Thanks in advance!
John