生成表的MS Access VBA

问题描述 投票:1回答:1

我无法从下面的查询我得到一个类型不匹配错误创建一个表,这个值是文本,该列也是文本。

请找到下面的查询:

DB.Execute " SELECT * INTO RESULTS FROM CCPA WHERE EMA_ADR LIKE & " * " & 
ME.SEARCHEMA.VALUE & " * ""       
ms-access access-vba
1个回答
2
投票

尝试这个

db.Execute "SELECT * INTO RESULTS FROM CCPA WHERE EMA_ADR LIKE '*" & Me.SEARCHEMA.Value & "*'"
© www.soinside.com 2019 - 2024. All rights reserved.