Hello,
Assuming you have a Form with a field to select the Project
and the ComboBox lookup field. In the AfterUpdate event of
the Project field set the Combo Box's row source to a query
which filters records in your drawings tables with the
related record in your Projects table. The SQL statement (to
query the records) would look something like this:
"SELECT tblDrawings.somefield1, tblDrawings.somefield2 FROM
tblDrawings WHERE tblDrawings.foreignkey = " & me.Project &
""
tblDrawings.foreignkey is the related field from tblProjects.
You may have set a One-to-Many relationship here
I am assuming here that the related field is a Number.
Me.Project refers to your Project field in the Form.
Every time you select a Project in your Project field the
records in the ComboBox will show related drawings for that
project.
HTH
Anand
Yeh The Drawings Table is Set to One to Many From The Projects
Table,
The Project Field Lookup has the following Select qry of
"SELECT Projects.[Project QNo], Projects.[Project Title] FROM
Projects; "
Dont I Need to Do Anything on The Drawing Combo Lookup Field,
Cause at moment the drawings lookup box has a select qry has
the following. "SELECT Drawings.[Drawing Number],
Drawings.[Drawings Title], Drawings.Revision FROM Drawings; "
The Drawings Number Field is set to text as some times
drawings numbers have letters in it.