G
Guest
I have a form where after someone enters the "Part Number", I want to have it
looked up in table and return the value to the NSN field, this is what I
wrote in the "After Update" event for the "Part Number".
Private Sub Part_Number_AfterUpdate()
Dim varNSN As Variant
varNSN = DLookup("[NSN]", "[tblNSN]", "[Part Number]=Forms![Part Number]")
Me.NSN = varNSN
End Sub
It does not work, any I ideas. Thanks.
looked up in table and return the value to the NSN field, this is what I
wrote in the "After Update" event for the "Part Number".
Private Sub Part_Number_AfterUpdate()
Dim varNSN As Variant
varNSN = DLookup("[NSN]", "[tblNSN]", "[Part Number]=Forms![Part Number]")
Me.NSN = varNSN
End Sub
It does not work, any I ideas. Thanks.