I have a form that updates some records by pulling fata from 2 other tables.
The first event worked with no issue pulling the brand from the "Items" table (It looks for the "ItemID" to match the records:
Private Sub ItemID_AfterUpdate()
Me![Brand] = DLookup("Brand", "Items", "[ItemID] = " & Nz(Me.ItemID, 0))
End Sub
Now, to pull the "Price" from the "Services" table it is giving me trouble. This one references the "ServiceNameID" to look up the price.
Private Sub ServiceNameID_AfterUpdate()
Me![Price] = DLookup("Price", "Services", "[ServiceNameID] = " & Nz(Me.ServiceNameID, 0))
End Sub
Any help is welcome!
The first event worked with no issue pulling the brand from the "Items" table (It looks for the "ItemID" to match the records:
Private Sub ItemID_AfterUpdate()
Me![Brand] = DLookup("Brand", "Items", "[ItemID] = " & Nz(Me.ItemID, 0))
End Sub
Now, to pull the "Price" from the "Services" table it is giving me trouble. This one references the "ServiceNameID" to look up the price.
Private Sub ServiceNameID_AfterUpdate()
Me![Price] = DLookup("Price", "Services", "[ServiceNameID] = " & Nz(Me.ServiceNameID, 0))
End Sub
Any help is welcome!