使表ms访问VBA

时间:2019-02-04 09:36:44

标签: ms-access access-vba

我无法通过以下查询创建表,但出现类型不匹配错误,值是Text,列也是text。

请找到以下查询:

DB.Execute " SELECT * INTO RESULTS FROM CCPA WHERE EMA_ADR LIKE & " * " & 
ME.SEARCHEMA.VALUE & " * ""       

1 个答案:

答案 0 :(得分:2)

尝试一下

db.Execute "SELECT * INTO RESULTS FROM CCPA WHERE EMA_ADR LIKE '*" & Me.SEARCHEMA.Value & "*'"