Hi All,
I am aware I am not the first to raise this question but I've tried in vain to find a definitive answer and haven't been able to so I am hoping someone can point me in the correct direction!
I have a main form which allows me to fill in Order Information within which is a subform which allows me to fill in Order Lines.
My Order Lines contain the following fields:
Extrusion
Length
Qty
etc. etc.
Elswhere in my database (tblLengths) I have set up a list of possible lengths for each Extrusion and therefore when an order is filled out I want the user to be restricted only to those lengths that are possible with the particular extrusion they have chosen. This list contains the ExtrusionID and LengthID so that I can query the available lengths for a particular Extrusion.
Within my subform I have set the record source to point at the tblLengths and criteria on the ExtrusionID to point to [Extrusion]. I've also put a requery against the Extrusion field so that I can force the combobox to refresh its list of results.
My problem is that I am getting unexpected results each time I add an Order line into my form and reading up I see that what I am trying to do is a big no-no. Please could you please help me to achieve what I need to?
Many thanks in advance,
Dan
I am aware I am not the first to raise this question but I've tried in vain to find a definitive answer and haven't been able to so I am hoping someone can point me in the correct direction!
I have a main form which allows me to fill in Order Information within which is a subform which allows me to fill in Order Lines.
My Order Lines contain the following fields:
Extrusion
Length
Qty
etc. etc.
Elswhere in my database (tblLengths) I have set up a list of possible lengths for each Extrusion and therefore when an order is filled out I want the user to be restricted only to those lengths that are possible with the particular extrusion they have chosen. This list contains the ExtrusionID and LengthID so that I can query the available lengths for a particular Extrusion.
Within my subform I have set the record source to point at the tblLengths and criteria on the ExtrusionID to point to [Extrusion]. I've also put a requery against the Extrusion field so that I can force the combobox to refresh its list of results.
My problem is that I am getting unexpected results each time I add an Order line into my form and reading up I see that what I am trying to do is a big no-no. Please could you please help me to achieve what I need to?
Many thanks in advance,
Dan