このコードを実行すると、エラー 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