I have two tables, inventory detail and equipment in stock. When I receive new inventory, I want to save a record of it to the equipment in stock table as well as when I send this inventory, I want to delete it out of the equipment table. I have been testing two of the fields, Customer and Salesman. I have managed to get it to create an entry in the equipment in stock table, but no information. Here is the code that I have used. I have tried every type of variable to get it to post the information to the fields, but with no luck.
function AfterAdd()
{
//** Insert a record into another table ****
global $conn;
$strSQLInsert = "insert into _equipment_in_stock (Customer, Salesman) values (Customer, Salesman)";
db_exec($strSQLInsert,$conn);
}