Crear una Consulta en access vba
Estoy tratando de crear una consulta pero siempre me sale el error 13. ¿Me podrían dar una Ayuda?
Private Sub CbxFirm3_Click()
Dim st As String
Dim dba As DAO.Database
Dim qda As DAO.QueryDef
st = "SELECT ImportfromExcel.* FROM ImportfromExcel WHERE (((ImportfromExcel.Country) Like " * " & [Forms]![import]![CbxCountry] & " * ") And ((ImportfromExcel.[Firm ]) Like " * " & [Forms]![import]![CbxFirm3] & " * ") And ((ImportfromExcel.Jahr) Like " * " & [Forms]![import]![Year] & " * ") And ((ImportfromExcel.Zustand) Like " * " & [Forms]![import]![Zustand] & " * ") And ((ImportfromExcel.City) Like " * " & [Forms]![import]![CbxCity] & " * "))ORDER BY ImportfromExcel.Country, ImportfromExcel.[Firm ], ImportfromExcel.Jahr, ImportfromExcel.City"
Set dba = CurrentDb
Set qda = dba.CreateQueryDef("Abfrage5", st)
End Sub