<?php
// After record added
function AfterAdd(&$values,&$keys,$inline)
{
// Parameters:
// $values - Array object.
// Each field on the Add form is represented as a 'Field name'-'Field value' pair
// $keys - Array object with added record key column values
//********** Insert a record into another table ************
global $conn;
$strSQLInsert = "insert into TableName (Field1, Field2) values (Value1, Value2)";
db_exec($strSQLInsert,$conn);
} // function AfterAdd
?>