C
|
cgphp 12/7/2011 |
In the "Before record added" event of the tbl_chq_issued table, enter this code: $rs = CustomQuery("SELECT serial_start, serial_end FROM tbl_chq_book WHERE cheque_book_no = ".$values['cheque_no']." LIMIT 1");
$rs = CustomQuery("SELECT serial_start, serial_end FROM tbl_chq_book WHERE cheque_book_no = '".$values['cheque_no']."' LIMIT 1"); //the difference between this code and the above one is the single quote for the cheque_book_no value |