0
我得到一個NullReferenceException錯誤,同時保存記錄與下面的語句:的NullReferenceException發生
Dim sel As String = "select COUNT(*) from Master_URLEntry where Projectname='" &0 G_Current_Project & "' and ListCode like '%" & sCode & "%' "]
If blnAdd = False Then
sel += "and Recordid not in ('" & _dtMasterRow.Item("RecordID") & "')"
End If
可能重複[什麼是NullReferenceException,我該如何解決它?](http://stackoverflow.com/questions/4660142/what-is-a-nullreferenceexception-and-how-doi-i-fix-它) – Jay
並提防SQL注入 – Fredou