Sorry to repost, but I cant get Agent to include the gif file. - relationships.gif (0/1)

D

David G.

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.
 
A

Arvin Meyer [MVP]

I'm stumped and hope someone can point me in the right direction.

Please stop trying to send an attachment. Please stay in the same thread
with your problem.
 
J

John W. Vinson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top