Re: Updating DataGridView
When creating a dynamic sql string you need to append the Values of the textboxes to the string.
Code:
Dim strSQL as String = "SELECT Amount, Date, Department, PO_Numbers,
Requester FROM PO WHERE (Amount = " & txtSearchAmount.Text & ") Or (Requester = '" & txtSearchRequester.Text & "') Or ..."
Also, do not delimit numeric values within single quotes.
Re: Updating DataGridView
Thanks for the help! I got that updated, but how do I set the data grid viewer to show that result? I thought it would be:
Code:
Me.DataGridView1.DataSource = POTableAdapter.Search
but no such luck. :(