Hi guys,
I have a form with a combo box, and when you select an item from this combo box it displays all the records that match that item in a subform. All OK so far. Trouble is, once you've selected an item and the matching records are displayed, when you then click in the subform the first item in the list in the combo box is overwritten with the item name whose records you're presently viewing.
DB is in the attachment. Here's the method to reproduce the fault:
1) open frmInspectionsByItem
2) Click the combo box and note the first item is Other: Have you reviewed your previous workplace inspection and CAR?
3) Select from the list (for example) Lighting: Light fittings OK. The matching records are shown as intended
4) Click a record in the subform
5) Click the combo box again and note that the first item has changed from Other: Have you reviewed... to Lighting: Light fittings OK. Hey presto!
The same behaviour happens with frmInspectionsByRoom where the first room number is overwritten.
Do any of you smart people out there have an idea as to why this is so? The list in the combo box shouldn't be able to be overwritten by the subform. I've spent a reasonable amount of time playing with various configurations but nothing's made any difference. Could be something in the relationships which are pretty loose at the moment.
Any help greatly appreciated!
Greg
I have a form with a combo box, and when you select an item from this combo box it displays all the records that match that item in a subform. All OK so far. Trouble is, once you've selected an item and the matching records are displayed, when you then click in the subform the first item in the list in the combo box is overwritten with the item name whose records you're presently viewing.
DB is in the attachment. Here's the method to reproduce the fault:
1) open frmInspectionsByItem
2) Click the combo box and note the first item is Other: Have you reviewed your previous workplace inspection and CAR?
3) Select from the list (for example) Lighting: Light fittings OK. The matching records are shown as intended
4) Click a record in the subform
5) Click the combo box again and note that the first item has changed from Other: Have you reviewed... to Lighting: Light fittings OK. Hey presto!
The same behaviour happens with frmInspectionsByRoom where the first room number is overwritten.
Do any of you smart people out there have an idea as to why this is so? The list in the combo box shouldn't be able to be overwritten by the subform. I've spent a reasonable amount of time playing with various configurations but nothing's made any difference. Could be something in the relationships which are pretty loose at the moment.
Any help greatly appreciated!
Greg