lnResult = SQLPREPARE(nHandle,cInsStr) IF lnResult < 1 && Error * Use AERROR() to retrieve ODBC error * Process error ENDIF lnResult= SQLEXEC(nHandle) IF lnResult < 1 && Error * Use AERROR() to retrieve ODBC error * Process error ENDIF>I am using SQLexec() with SQLprepare() function it gives me following error.
>cInsStr = "Insert into APPL values("+allt(str(m.MAppKey))+","+ ; thisform.cmbBranch.value+","+; > allt(ThisForm.Text1.value)+","+; > "'',"+; > "0,"+; > "0,"+; > "0,"+; > "0,"+; > "'1',"+; > "'N',"+; > m.DtStamp+")" > =sqlprepare(nHandle,cInsStr) > =sqlexec(nHandle)>