So, if you start with a main form and have related records in a subform,
and
then want to see records related to a row/record in the subform, why not
embed a sub(sub)form within the subform?
Regards
Jeff Boyce
Microsoft Office/Access MVP
You're exactly right, I do eventually want results in another subform.
Ultimately, this is where I'm going:
Subform1 (query results from elsewhere):
[Company], [Attribute2],etc. (there will be a handfull of records
displayed)
"RelatedQuery"
click any [Company] from Subform1 and
select a [DataSource] (drop down menu)
Subform2 ("RelatedQuery" results):
[Company Detail1], [ Company Detail2], etc.
Automatically requery when different [Company] clicked or [DataSource]
selected.
**I think my problem is that I don't know how to set the criteria in
"RelatedQuery" so that it will only show results pertaining to the
[Company]
clicked.
I think I'm starting to learn how to express my questions
Thanks,
jeff
:
So, within the form that is being used as a subform, do you have a
particular control/field that users will "click" to highlight? You
could
use the GotFocus event of that control to run your code (i.e., run a
query).
Usually, though, you'd want the data to show up, not as a query, but
as
information in a form.
Regards
Jeff Boyce
Microsoft Office/Access MVP
the records are being displayed as a continuous form. Conceptually,
I
want
to use the record with focus (clicked by user) as criteria in
another
query.
Thanks for the help...
-jeff s.
:
Are you talking about Access? Access doesn't have "rows" (that's a
spreadsheetly term).
How are you displaying records in your form (subform)? As a
datasheet?
As
a continuous form?
More info, please...
Regards
Jeff Boyce
Microsoft Office/Access MVP
I have a subform that is based on a query. The results are
displayed
on
screen. When a user clicks anywhere on a specific row, I want
another
query
to run that gives details on that clicked item. I can get the
query
to
run
when a row is clicked, but I cannot figure out how to refine the
results
to
only those related to the clicked item.
Thanks!