文本类型的常数要用引号括住。
select * from client where 索引1 = 'A' and 索引2 = 8"
代码应该写成:
client.RecordSource = "select * from client where 索引1 = '" & oldsuoyin1 & "' and 索引2 = " & oldsuoyin2
select * from client where 索引1 = 'A' and 索引2 = 8"
代码应该写成:
client.RecordSource = "select * from client where 索引1 = '" & oldsuoyin1 & "' and 索引2 = " & oldsuoyin2
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货