B
Brian Fielding
The data base consists of 2 key tables Scanner Models and Scanner Parts. As
this is a many-to-many relationaship and there is a linking table ModelPart.
When work is carried out on a Scanner a Service Report is input. The Service
Report consists of a main form (recording dates, work done etc, Scanner
Model) and a subform (to enter details of parts used). The Service Report
number is the Master Link Field and Child Link Field.
On entereing a Service Report the Scanner Model is selected from a combo
box. On entering the subform and clicking on the PartID combo box a list of
parts based on the Scanner Model (created using a query on the Row Source)
enables Parts used to be selected and quantities etc to be added.
My problem is: when you add a new Service Report and enter the relevant
fields and then enter the Parts subform the Parts are displayed correctly
but . . . if you now add a second Service Report and after entering the
relevant fields you enter the subform the Parts combo box does not display
any parts (just headings). However if you press F9 and then re-click on the
Parts combo box the correct list of parts is shown.
I need to add a requery somewhere (I have tried several events) - what
requery is needed and whch event do I add it to ?
Thanks
Brian
this is a many-to-many relationaship and there is a linking table ModelPart.
When work is carried out on a Scanner a Service Report is input. The Service
Report consists of a main form (recording dates, work done etc, Scanner
Model) and a subform (to enter details of parts used). The Service Report
number is the Master Link Field and Child Link Field.
On entereing a Service Report the Scanner Model is selected from a combo
box. On entering the subform and clicking on the PartID combo box a list of
parts based on the Scanner Model (created using a query on the Row Source)
enables Parts used to be selected and quantities etc to be added.
My problem is: when you add a new Service Report and enter the relevant
fields and then enter the Parts subform the Parts are displayed correctly
but . . . if you now add a second Service Report and after entering the
relevant fields you enter the subform the Parts combo box does not display
any parts (just headings). However if you press F9 and then re-click on the
Parts combo box the correct list of parts is shown.
I need to add a requery somewhere (I have tried several events) - what
requery is needed and whch event do I add it to ?
Thanks
Brian