maskan_1361
دوشنبه 12 تیر 1391, 09:26 صبح
سلام
موقعی که می خوام رکود مورد نظر را اپدیت کنم خطای سینتاکس می ده علت چیست ؟
کد
Dim cn As ADODB.Connection
Dim stat As String
Set cn = New ADODB.Connection
cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\vb\db1.mdb;Persist Security Info=False"
cn.Open
'stat = "update from tb3 where id= '" & Labelx01.Caption & "','" & Labelx02.Caption & "', '" & Labelx03.Caption & "') "
stat = "update from tb3 set pish= '" & Labelx01.Caption & "' where id= '" & Text21.Text & "'"
cn.Execute stat, adCmdText
cn.Close
موقعی که می خوام رکود مورد نظر را اپدیت کنم خطای سینتاکس می ده علت چیست ؟
کد
Dim cn As ADODB.Connection
Dim stat As String
Set cn = New ADODB.Connection
cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\vb\db1.mdb;Persist Security Info=False"
cn.Open
'stat = "update from tb3 where id= '" & Labelx01.Caption & "','" & Labelx02.Caption & "', '" & Labelx03.Caption & "') "
stat = "update from tb3 set pish= '" & Labelx01.Caption & "' where id= '" & Text21.Text & "'"
cn.Execute stat, adCmdText
cn.Close