I have a form (Order Form) with a subform within it (Products subform1). I would like the ProductName and UnitPrice field to automatically fill in when you choose a SKU number. This works for the name and address in the main form but not in the subform.
This is what I have in the Event Procedure box on the SKU combo box:
[code=vb]
Private Sub SKU_AfterUpdate ()
Me![ProductName] = Me![SKU].Column(1)
Me![UnitPrice] = Me![SKU].Column(2)
End Sub
[/code]
What I'm I doing wrong. Do I need to reference the subform name somewhere?
Thanks
This is what I have in the Event Procedure box on the SKU combo box:
[code=vb]
Private Sub SKU_AfterUpdate ()
Me![ProductName] = Me![SKU].Column(1)
Me![UnitPrice] = Me![SKU].Column(2)
End Sub
[/code]
What I'm I doing wrong. Do I need to reference the subform name somewhere?
Thanks
Comment