你写 的SQL语句有错吧 cmd1.CommandText = "insert into user1 values (uname,password)('" & TextBox1.Text & " ','" & TextBox2.Text & " ')"提交回答
cmd1.CommandText = "insert into user1(uname,password) values ('" & TextBox1.Text & " ','" & TextBox2.Text & " ')"