T
Trent
I am new to Access and this is my first post.
I have created what should be a relatively straight-forward database,
but one thing is eluding me. I have thought about what I want to
accomplish and have set up my tables/forms in the following way that
made the most sense to me. (Table, form & field names are generic for
simplicity.)
I have four tables "A" thru "D." A is demographic information and B,
C and D have additional (one-to-one) info. Each has a primary field
named "z" and the relationships are A-->B, A-->C and A-->D, using "z"
field. All relationships are one-to-one.
My primary form "A" contains three tabbed subforms, "B" "C" and "D."
Thus, when one is entering data in "B" subform, the demographic "A"
info remains visible.
When I click the new record button, a new, blank, record appears. I
enter the new identifying number in A's field "z" and the new number
is disseminated to tables/subforms B and C. D, however, remains stuck
on the previous record.
There is one big difference between between D and the other subforms.
Table D has many fields, so it is divided into several subforms. This
was accomplished by adding a blank subform "d_master" to the primary
form on the appropriate tab-page, and creating a new tab control that
contains subforms D1, D2, D3, etc. Each D subform is associated with
D table (that is, there are no D1, D2, etc tables).
Here is a rough ascii depiction of the form layout. (View with fixed
font.)
-------------------
| A |
| |
|---|---|-------| |
| B | C |Dmaster| |
| | |-------- |
| | |D1 | D2| |
| | | | | |
| | | | | |
-------------------
Things I have tried that have not worked:
1) Creating a Dmaster table containing only field "z."
2) With the Dmaster table version, I tried setting the relationships
two ways:
A-->Dmaster, Dmaster-->D
and
A-->Dmaster, A-->D
3) Because table/form B and C work, I have also tried creating a new D
table by copy/pasting the structure of C and thus recreating D on a
table that otherwise behaves as desired.
There are no macros or VBA, and I have no experience with either.
Thus, if the solution requires either, please be very explicit.
Thank you for your attention,
Trent Nicol
I have created what should be a relatively straight-forward database,
but one thing is eluding me. I have thought about what I want to
accomplish and have set up my tables/forms in the following way that
made the most sense to me. (Table, form & field names are generic for
simplicity.)
I have four tables "A" thru "D." A is demographic information and B,
C and D have additional (one-to-one) info. Each has a primary field
named "z" and the relationships are A-->B, A-->C and A-->D, using "z"
field. All relationships are one-to-one.
My primary form "A" contains three tabbed subforms, "B" "C" and "D."
Thus, when one is entering data in "B" subform, the demographic "A"
info remains visible.
When I click the new record button, a new, blank, record appears. I
enter the new identifying number in A's field "z" and the new number
is disseminated to tables/subforms B and C. D, however, remains stuck
on the previous record.
There is one big difference between between D and the other subforms.
Table D has many fields, so it is divided into several subforms. This
was accomplished by adding a blank subform "d_master" to the primary
form on the appropriate tab-page, and creating a new tab control that
contains subforms D1, D2, D3, etc. Each D subform is associated with
D table (that is, there are no D1, D2, etc tables).
Here is a rough ascii depiction of the form layout. (View with fixed
font.)
-------------------
| A |
| |
|---|---|-------| |
| B | C |Dmaster| |
| | |-------- |
| | |D1 | D2| |
| | | | | |
| | | | | |
-------------------
Things I have tried that have not worked:
1) Creating a Dmaster table containing only field "z."
2) With the Dmaster table version, I tried setting the relationships
two ways:
A-->Dmaster, Dmaster-->D
and
A-->Dmaster, A-->D
3) Because table/form B and C work, I have also tried creating a new D
table by copy/pasting the structure of C and thus recreating D on a
table that otherwise behaves as desired.
There are no macros or VBA, and I have no experience with either.
Thus, if the solution requires either, please be very explicit.
Thank you for your attention,
Trent Nicol