Subform: auto-increment
Posted: Mon Apr 23, 2012 7:51 pm
Hi,
I use in my forms:
Is it possible to have something similar for the subform?
Best Regards,
Rui
I use in my forms:
Code: Select all
if('#clone#' == '1' or '#recordID#' == '-1'){ //-- this is a new record
nuRunQuery("INSERT INTO testa_counter (tc_text) VALUES ('1')");
$s = "UPDATE testa SET ta_customer_no = '" . mysql_insert_id() . "' ";
$s .= "WHERE testa_id = '#newID#'";
nuRunQuery($s);
}
Best Regards,
Rui