On a form that I have set up I have created an event that will enter a description of the material automatically when an SAP code is entered. The data it is pulling from is in a seperate table in the database. Here is the code I am using.
It works when you first enter the SAP code, however if you go back and change the code it does not change the description.
Can Anyone HELP!?!?!
Code:
Private Sub SAP_Code_LostFocus()
Dim vardesc As Variant
vardesc = DLookup("description", "Mat Lookup", "SAP_code = [sap_code]")
Forms!productionreconciliation![description] = vardesc
End Sub
Can Anyone HELP!?!?!