INSERT INTO billinfo(billno,billdate) VALUES (val(right(thisform.text1.Value,4)),DATE())Remember that the value showed in thisform.text1.Value, 04-0001, is ONLY ment to show nicely, it is not the actual billno.
>INSERT INTO billinfo(billno,billdate) VALUES (thisform.text1.Value,DATE()) >>thanks.