1.
Dim
n
As
Integer
= DataGridView2.CurrentRow.Index
2.
Dim
key
As
String
= DataGridView2.Item(3, n).Value
3.
sql =
"select * from store where store_amount = "
& key &
""
4.
If
NumericUpDown1.Value > key
Then
5.
msg_error(
"กรอกเกินจำนวน"
)
6.
NumericUpDown1.Value =
Nothing
7.
Return
8.
End
If