954,560 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

System.NullReferenceException: Object reference not set to an instance of an object

i need to isnert in database and i have query liike that

str_attend = "insert into Attendees([Userid],[Attendees_name],[Attendees_telephone],[Attendees_Email] )values  (" & userid & " ," & arr(0).ToString() & " , " & arr(1).ToString() & " , " & arr(3).ToString() & " )"


all values hold values in insert statment non of of them is null.

but it gives me an exception on insert statment .

erum
Junior Poster in Training
72 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

Did you mean to use arr values 0,1 and 3? And one of them is null if you are getting that error on that line.

Momerath
Nearly a Senior Poster
3,386 posts since Aug 2010
Reputation Points: 1,232
Solved Threads: 558
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: