nHan = SqlConnect("mySqlDsn") nRes = SQLExec(nHan, "Insert Into myTable Values ('value1', 'value2', 3.5)")Where a nHand or nRes value of -1 would indicate failure of either SqlConnect() or SqlExec(). A better approach is to use stored procedures, but that is another subject.