Discussion:
Sorry to repost, but I cant get Agent to include the gif file. - relationships.gif (0/1)
(too old to reply)
David G.
2009-08-02 16:17:11 UTC
Permalink
I'm stumped and hope someone can point me in the right direction.

My goal is a form with subform that allows records to be added or
edited in the subform (which is set to either datasheet or continuous
forms view). Fields in the form header (or body) are combo boxes whose
values are used to filter the subform's record source.

I've attached a gif image of tables (with field names) and
relationships that I've set up.


The tables starting with "jtbl" are join tables for many-to-many
relationships.

definitions:
1. Material = defines a substance
2. Test Type= defines a test (any given material can have a several
test types.)
3. jtblMaterialTestType = holds the design spec value for each test
type for each Material

4. Sample = a Material extracted at a specified time/date.
5.jtblSampleTestType = holds the measured value for each test type for
each sample.

Main Form (record source = tblSample)
-Header
--a couple of unbound combo boxes linked to tblMaterial fields which
will be used in an SQL statement for the cboSample combo box control
in the form detail section.

-Detail
--cboSample combo box. bound to tblSampleID, record source=
tblMaterial where field values match the combo box values located in
the form header.
--other text box, or combo box controls bound to fields in the
tblSample table used to uniquely identify a sample.
--sub form control. record source ????(something like a combined
jtblMaterialTestType and jtblSampleTestType)
If I used jtblMaterialTestType and child/parent linked
jtblMaterialTestType.tblMaterialID to tblSample.tblMaterialID I would
get a list of test types and their target values for that sample. I
want this so the user knows what tests are to be performed and what
the expected values should be.
This doesn't allow the user to enter the measured test values.
how can I create a record source for the subform? Is my table design
part of the problem.
THANKS!
David G.
John W. Vinson
2009-08-02 19:13:33 UTC
Permalink
Post by David G.
I've attached a gif image of tables (with field names) and
relationships that I've set up.
These TEXT BASED newsgroups do NOT allow posting of binaries. Please explain
your problem in words.
--
John W. Vinson [MVP]
Loading...