我想在VB中插入表格中的一些字段。但它沒有給出任何結果。如何在VB中插入表格
Dim a As String
a = s_up.Text1.Text
Dim b As String
b = s_up.Text2.Text
Set rs = Nothing
rs.Open "insert into profile (user_name,first_name) values(' " & a & " ',' " & b & " ') ", cn, adOpenKeyset, adLockOptimistic
這裏執行語句在這裏 – Dotnet 2011-03-29 08:05:58
[你不想這樣做](http://bobby-tables.com/ )。 – Bobby 2011-03-29 08:09:21
如果你有連接「cn」打開,那麼你可以嘗試 cn.execute「insert into profile(user_name,first_name)values(''&a&'','」&b&'')「 – DevelopmentIsMyPassion 2013-01-21 14:30:10