How do I display the specific rows returned by the query in a Table Query code is
SELECT name, STD, Fees, paid
FROM register
WHERE (paid - Fees < 0)
I get error
"An unhandled exception of type 'System.Data.ConstraintException'
occurred in System.Data.dll
Additional information: Failed to enable constraints. One or more rows
contain values violating non-null, unique, or foreign-key constraints."
But when I return all rows it works fine How do I display only specific rows?
I used
Dim test As DataTable
test = Me.RegisterTableAdapter.GetDataBy ' GetDataBy is Query
DataGridView1.DataSource = test