VB问题,提示错误为 InSert into 语句语法错误,这是怎么回事?
DimSQL_cmdAsStringDima1AsStringDima2AsStringa1=Text1.Texta2=Text2.TextIfConn.State=0T...
Dim SQL_cmd As String
Dim a1 As String
Dim a2 As String
a1 = Text1.Text
a2 = Text2.Text
If Conn.State = 0 Then Conn.Open
SQL_cmd = "insert into user (Id,用户名,密码) values (1,a1,a2)"
Set rs = Conn.Execute(SQL_cmd)
******************
提示错误为 InSert into 语句语法错误,这是怎么回事? 展开
Dim a1 As String
Dim a2 As String
a1 = Text1.Text
a2 = Text2.Text
If Conn.State = 0 Then Conn.Open
SQL_cmd = "insert into user (Id,用户名,密码) values (1,a1,a2)"
Set rs = Conn.Execute(SQL_cmd)
******************
提示错误为 InSert into 语句语法错误,这是怎么回事? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询