J
John Garvey
I have a form frmItems, with control source tblItems. The form is searchable
based on control ReleaseDate, which holds the relase date for each item. I
need to eliminate that control from the form because I am eliminating the
field ReleaseDate from tblItems. This is because we now keep a separate
history of the release dates for each item in tblRelDates.
Now frmItems has a new subform (frmItemsSubRelDates) with control source
tblRelDates. I would like to be able to filter the frmItems based on the
current relase date for each item. I am having trouble figuring out how to
do that.
I have qryLatestRelDates that calculates the latest release date for each
item. I created another query based on this, qryLatestRelDatesForItemsForm,
where the ItemID criteria is [Forms]![Items]![Item ID]. On the form I put a
text box with source =DFirst("[RelDate]","[qryLatestRelDatesForItemsForm]")
but I guess I can't filter the form based on this since it's not part of the
form's record source? Can I somehow use the result from a query based on
this to filter the form? I do need to make the form searchable by the relase
date.
Thanks in advance for advice on this topic.
based on control ReleaseDate, which holds the relase date for each item. I
need to eliminate that control from the form because I am eliminating the
field ReleaseDate from tblItems. This is because we now keep a separate
history of the release dates for each item in tblRelDates.
Now frmItems has a new subform (frmItemsSubRelDates) with control source
tblRelDates. I would like to be able to filter the frmItems based on the
current relase date for each item. I am having trouble figuring out how to
do that.
I have qryLatestRelDates that calculates the latest release date for each
item. I created another query based on this, qryLatestRelDatesForItemsForm,
where the ItemID criteria is [Forms]![Items]![Item ID]. On the form I put a
text box with source =DFirst("[RelDate]","[qryLatestRelDatesForItemsForm]")
but I guess I can't filter the form based on this since it's not part of the
form's record source? Can I somehow use the result from a query based on
this to filter the form? I do need to make the form searchable by the relase
date.
Thanks in advance for advice on this topic.