Below script is how to use an auto number using SQL database which support to reset auto number everyday. means record data will be reset to 001 when the day is changing. Public Overridable Function SerialOrderId_AutoNum() As String MeDB.TutupKoneksi() DTS = New DataSet DTA = New _ SqlDataAdapter("SELECT SerialOrderId FROM SerialOrder_Table " & _ "WHERE YEAR(LEFT(SerialOrderId,8)) + MONTH(LEFT(SerialOrderId,8)) " & _ "+ DAY(LEFT(Seria...
Media Berbagi Untuk Dunia Pemrograman VB.Net Dan C# Indonesia