I am trying to update the vendor table with the following vbscript but I keep getting the error: "530 - A field that is not supported was included in the request. The remainder of the request was processed normally, but the unsupported field was ignored."
Const adOpenStatic = 3 Const adLockOptimistic = 3 Const adUseClient = 3
Dim qConnection Dim qRecordset Dim sMsg Dim sSql
Set qConnection = CreateObject("ADODB.Connection") Set qRecordset = CreateObject("ADODB.Recordset")
qConnection.Open "DSN=Quickbooks Data;OLE DB Services=-2" qRecordset.CursorLocation = adUseClient
sSql = "SELECT * FROM Vendor WHERE Vendor.Name='April Honnies'"
qRecordset.Open sSql, qConnection, adOpenStatic, adLockOptimistic
If (qRecordset.EOF) Then sMsg = "April was NOT found" & Chr(10) Else sMsg = "April was found" & Chr(10) qRecordset.Fields("CompanyName").value = "Test User Company" qRecordset.Update() End If
MsgBox sMsg qRecordset.Close qConnection.Close |