0

i am newbie... i'm so sory... help me please I have a table detail reservation for the additional goods then on the details reservation form I plug a datagridview that displays a table of goods in the form i put textbox looking to locate data items ... before searching is function, but when the goods have been added to the detail table reservation, search is not function(error) attachment error code and search code I attach in the below.. thank you ....

Private Sub txtCari_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtCari.TextChanged       
    DS.Tables("tbl_barang").DefaultView.RowFilter = " kode_barang LIKE '%" & txtCari.Text & "%' OR nama_barang LIKE '%" & txtCari.Text & "%'or nama_satuan LIKE '%" & txtCari.Text & "%' or nama_spesifikasi LIKE '%" & txtCari.Text & "%'"
End Sub
Tim Schmelter
  • 429,027
  • 67
  • 649
  • 891
  • The message is self-explanatory. Step through your code so you can inspect the values of the variables/objects to see which one is null. – Tim Jun 23 '13 at 01:07
  • It's look like problem in **DS.Tables("tbl_barang")** .. – matzone Jun 23 '13 at 01:13
  • possible duplicate of [What is a NullReferenceException and how do I fix it?](http://stackoverflow.com/questions/4660142/what-is-a-nullreferenceexception-and-how-do-i-fix-it) – Ňɏssa Pøngjǣrdenlarp Mar 17 '15 at 13:35

0 Answers0