问题描述
我有这个代码可以正常工作并将表单打开到正确的记录但它会产生类型不匹配。 msgbox打开记录...
stLinkCriteria由两个值组成,其中一个是数字[AAID] - 是导致这种情况的语法吗?
********************************************** **** ****************************************** *
I have this code which works fine and will open the form to the correct record but it produces a "Type mismatch" msgbox on opening the record...
the stLinkCriteria consists of two values one of which is a number [AAID] - is the syntax causing this?
************************************************** ******************************************
推荐答案
是的,但语法不是:
stLinkCriteria =" [AAID] =" &安培; str(Me![lstEMPs] .Column(0))& " AND [部门] =''" &安培;我![lstEMPs] .Column(1)& "''"
?
Yes, but wouldn''t the syntax be:
stLinkCriteria = "[AAID] =" & str(Me![lstEMPs].Column(0)) & " AND [Department]=''" & Me![lstEMPs].Column(1) & "''"
?
这篇关于语法问题 - 当strlinkcriteria是一个数字时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!