J
JAMES
I have a subform to create an order that requires two
combo boxes to be syncroized to limit selection from the
same table. (cbo 1 = Manufacture) (cbo 2 = Item name)
When a new record is selected in the sub form the 2nd cbo
box in the previous record changes to equal the value in
cbo box 1 in the new record.
Private Sub ITEM_NAME_Change()
Dim X As Variant
X = DLookup("[Wood 1].[ITEM _NUMBER]", "[Wood
1]", "[ITEM_NUMBER] = '" & Forms![ORDER_WOOD]![ITEM_NAME]
& "'")
Me![ITEM_NUMBER] = X
Exit_ITEM_NAME_Change:
Exit Sub
End Sub
Private Sub MFG_Change()
Me![ITEM_NAME].Requery
Forms![ORDER_WOOD].Repaint
End Sub
Any help would be greatly appreciated.
James
combo boxes to be syncroized to limit selection from the
same table. (cbo 1 = Manufacture) (cbo 2 = Item name)
When a new record is selected in the sub form the 2nd cbo
box in the previous record changes to equal the value in
cbo box 1 in the new record.
Private Sub ITEM_NAME_Change()
Dim X As Variant
X = DLookup("[Wood 1].[ITEM _NUMBER]", "[Wood
1]", "[ITEM_NUMBER] = '" & Forms![ORDER_WOOD]![ITEM_NAME]
& "'")
Me![ITEM_NUMBER] = X
Exit_ITEM_NAME_Change:
Exit Sub
End Sub
Private Sub MFG_Change()
Me![ITEM_NAME].Requery
Forms![ORDER_WOOD].Repaint
End Sub
Any help would be greatly appreciated.
James