Dim n As Integer = DataGridView2.CurrentRow.Index
Dim key As String = DataGridView2.Item(3, n).Value
sql = "select * from store where store_amount = " & key & ""
If NumericUpDown1.Value > key Then
msg_error("กรอกเกินจำนวน")
NumericUpDown1.Value = Nothing
Return
End If
Tag : .NET, Ms SQL Server 2008, Win (Windows App), VS 2012 (.NET 4.x)