The problem is related to the usage of VFP COM server from Visual basic 6.0 (SP 6).
Code (relevant)
Private moVFPServer As f_vfpsvr.VFPServer
In the Sub:
Dim oRec As f_vfpsvr.VFPRecord
Set oRec = moVFPServer.NewRecord("LoanMstr")
With oRec
.SetField "ssn", sSSN
.SetField "awdyr", sAwardYear
.SetField "tran_date", Format(Now, "mm/dd/yyyy")
.Commit
End With
Method "NewRecord" from moVFPServer returns an object which represents a new, empty record in the VFP table "LoanMstr".
Code follows to populate properties/fields and save data.
All this works if VFP COM server is built using VFP 8.0 and does not work when built using VFP 9.0.
Specifically, VB application errors out at the line of code:
Set oRec = moVFPServer.NewRecord("StdMstr")
COM server throws exception: automation error -2147417851.
This is happening on the same machine.