我在运行此代码时收到错误 3601,它说参数太少,有什么解决方案吗?
Sub copySDback()
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim test As String
Dim sdSQL As String
Set db = CurrentDb()
moo = "SD12401064"
sdSQL = "SELECT [Test EUS BL].[Ticket Nbr], [Test EUS BL].[Current Assignment Group], [Test EUS BL].[ELEVATION STATUS] FROM [Test EUS BL] WHERE ((([Test EUS BL].[Ticket Nbr])=SD16818515));"
'CurrentDb.OpenRecordset sdSQL
Set rst = db.OpenRecordset(sdSQL, dbOpenDynaset, dbSeeChanges)
If rs.BOF And rs.EOF Then
rs.Close
MsgBox "name not found"
End If
Exit Sub
rs.Close
db.Close