Sorry for the slop, was inserting code into another statement: here is the full code
It seems to work, thanks! See anything else wrong with it?
Code:
ume = Parsed("results")(1)("items")(1)("uid")Debug.Print ume
pn = "735075"
Debug.Print pn
'MsgBox "Do you wish to continue?", vbYesNo, "Continue"
rs4.MoveFirst
Do Until rs4.EOF
If rs4!UID = ume Then
If MsgBox("Exists: Is this an UPDATE?", vbYesNo) = vbNo Then
MsgBox "stop"
Exit Sub
End If
End If
rs4.MoveNext
Loop
rs4.MoveFirst
Do Until rs4.EOF
If rs4!PartNumber = pn Then
rs4.Edit
rs4!UID = ume
rs4.Update
End If
rs4.MoveNext
Loop