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 .

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.