L
Luke Dalessandro
Access 2000
What's the normal way for doing this?
I have tables:
A B C
AID-\ BID-\ CID
\-AID \-BID
My goal is for users to browse to a record in "A" and then be able to
see a list of "B"s associated with "A" and each "C" associated with each
"B".
This is easy enough on a report, but I need to show it to them on a
form. I don't want to use datasheets or to join "B" and "C" into one
continuous subform because that doesn't really fit what I'm modeling,
and will confuse the users that I have.
The only thing I can think of is to have a main form with two continuous
subforms. The main form is bound to table A. The first subform is bound
to table B and is linked by AID. The second subform is bound to table C,
but is not linked.
There is a button on subform B that basically says "Show Cs". When the
user clicks it, I run:
Me.Parent.subC.Filter = "[BID] = " & Me![BID]
Me.Parent.subC.FilterOn = True
This works fine, but I don't have a large dataset to test it on yet.
There may end up being 10s - 100s of thousands of records in B and C.
Has anyone had any experience with this sort of situation before? Is
there a better/more standard way of designing an interface that does
this? Will my solution fail horribly at some point?
Thanks in advance,
Luke
What's the normal way for doing this?
I have tables:
A B C
AID-\ BID-\ CID
\-AID \-BID
My goal is for users to browse to a record in "A" and then be able to
see a list of "B"s associated with "A" and each "C" associated with each
"B".
This is easy enough on a report, but I need to show it to them on a
form. I don't want to use datasheets or to join "B" and "C" into one
continuous subform because that doesn't really fit what I'm modeling,
and will confuse the users that I have.
The only thing I can think of is to have a main form with two continuous
subforms. The main form is bound to table A. The first subform is bound
to table B and is linked by AID. The second subform is bound to table C,
but is not linked.
There is a button on subform B that basically says "Show Cs". When the
user clicks it, I run:
Me.Parent.subC.Filter = "[BID] = " & Me![BID]
Me.Parent.subC.FilterOn = True
This works fine, but I don't have a large dataset to test it on yet.
There may end up being 10s - 100s of thousands of records in B and C.
Has anyone had any experience with this sort of situation before? Is
there a better/more standard way of designing an interface that does
this? Will my solution fail horribly at some point?
Thanks in advance,
Luke