display IF a record is selected

J

JohnLute

I have a subform that functions as a bill of material. For example 1
"Finished Good" with many "Resources". The subform contains a "Facility"
subform that records the Facility(s) where a Resource may be used. The
Facility subform contains a "Line" subform that records the Production
Line(s) where a Resource may be used at a given Facility. This results in
records accordingly:

[Finished Good] 12345 > [Resource] 812345 > [Facility] 01 > [Line] 16

What I'd like to do is code the field [Line] so that when it's selected it
will display only the Line ID's relative to the record in [Facility]. Here
are the two subform fields:

txtFacilityID
SELECT tblFacilities.txtFacilityID, tblFacilities.FacilityName,
tblFacilities.City, tblFacilities.StateOrProvince FROM tblFacilities ORDER BY
tblFacilities.txtFacilityID;

LineID
SELECT tblFacilitiesLineIDs.LineID, tblFacilitiesLineIDs.Description,
tblFacilitiesLineIDs.txtFacilityID, tblFacilities.FacilityName,
tblFacilities.City, tblFacilities.StateOrProvince FROM tblFacilities INNER
JOIN tblFacilitiesLineIDs ON tblFacilities.txtFacilityID =
tblFacilitiesLineIDs.txtFacilityID;

I assume that I need to code LineID's Before Update Event...?

Thanks for your help!
 

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