Hi Ray,
The lines below are suppose to create another record in the CUSTOMERANDACCOUNTS form of my current database. It is still not working. What am I missing?
** I added a WriteLn(RSHandle) and the result was -1 **
The sample checks that RSHandle must be greater than -1.
IF vTERMS = "Layaway" AND @ADD AND GUIDE = "" THEN { #include "sbasic_include.sbas" vRSHandle = @XResultSetNew(@FN, "CUSTOMERANDACCOUNTS") XResultSetCreateNewRecord(vRSHandle) XResultSetValue(vRSHandle,"FNAME0",FNAME) XResultSetValue(vRSHandle, "LNAME0", LNAME) XResultSetValue(vRSHandle, "STREET0", STREET) XResultSetValue(vRSHandle, "CITY1", CITY) XResultSetValue(vRSHandle, "POSTAL CODE0", POSTAL CODE) XResultSetValue(vRSHandle, "DATE0", DATE10) XResultSetValue(vRSHandle, "CATEGORY", TERMS0) XResultSetValue(vRSHandle, "BALANCE", ANEWBAL) XResultSetValue(vRSHandle, "PHONE10", PHONE1) XResultSetClose(vRSHandle) GUIDE = @XLU(@FN,PHONE1,"CUSTOMERANDACCOUNTS!PHONE10","BALANCE") FormCommit("")}
|