So im Trying to automaticly change the location of a product when it is received. here is what i have so far im confused as to how the replace function works. i want to replace "Location" on the "Main Inventory" table according to S/N. here is what i have so far.
im not sure how to lookup the the correct row to replace the location on. the primary key is the "Sai Serial number".
Code:
Private Sub Command73_Click()
If IsNull (Me.Sai_Serial_Number_1r.Value) OR Me.Sai_Serial_Number_1r.Value = "" Then
Else
If Me.Sai_Serial_Number_1r.Value = DLookup("[Sai Serial Number]", "[Main Inventory]", "[Sai Serial Number] = '" & Me.Sai_Serial_Number_1r & "'") Then
Replace () ' no Clue how to use this function
End If
End Sub
im not sure how to lookup the the correct row to replace the location on. the primary key is the "Sai Serial number".