the follow ing is supposed to create a table and insert the columns into the table at runtime. It also has picture column and creates the amaount of picture columns based on the amount of files in the multiple file uploaer.. it works fine with just one file in the uploader. The problem comes when there are two or more files in the uploader and intead of adding the second image right after the first image is added, it instead adds the first image then goes back and trys to create the table again, and i get an error saying the table already exsits.I want it to add the second image right after the first image, not go back and create the table then add the second imageDirectory.CreateDirectory(MapPath(".") & "\port\" & clientname.Text & "\") Dim objConn As New SqlConnection("Data Source=xxx") objConn.Open() Dim strCommandText As String = "" For index = 1 To Attachments1.Items.Count Step 1 If String.IsNullOrEmpty(strCommandText) Then strCommandText = "
View Complete Post