请教如何删除SQL表中数据!!
Dim conn As New ADODB.ConnectionDim db As New ADODB.Recordset
Dim com As New
Dim mmm As String
Dim sql As String
mmm = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=boos1;Data Source=BENQ"
conn.ConnectionString = mmm
conn.Open mmm
sql = "delete from LD2 WHERE 路单号=" & Text4.Text'text4.text为LD100000
db.CursorLocation = adUseClient
db.Open sql, conn, adOpenKeyset, adLockPessimistic
db.Close
conn.Close
Set db = Nothing
Set conn = Nothing
错误提示:'LD100000'无效