20-11-12, 10:11 PM
تفضل يا اخي كود سهل ومفهوم
PHP كود :
Dim billno As New OleDbCommand("SELECT max(bill) From sales", con)
If con.State = ConnectionState.Open Then con.Close()
con.Open()
If billno.ExecuteScalar Is DBNull.Value Then
TextBox11.Text = 1
con.Close()
Else
TextBox11.Text = billno.ExecuteScalar + 1
con.Close()

